X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fchronovu-la%2Fapi.c;h=040a9c4b087f66b2c87c40555ada19a5ce78025a;hb=61c908589828b11352b5d792c4278964e1220a59;hp=d8de0da1f96f655965174da40491fda2419017db;hpb=c50805d59ce85e00ef263c0a1edad2487bb8a9fe;p=libsigrok.git diff --git a/src/hardware/chronovu-la/api.c b/src/hardware/chronovu-la/api.c index d8de0da1..040a9c4b 100644 --- a/src/hardware/chronovu-la/api.c +++ b/src/hardware/chronovu-la/api.c @@ -255,8 +255,7 @@ static int dev_open(struct sr_dev_inst *sdi) struct dev_context *devc; int ret; - if (!(devc = sdi->priv)) - return SR_ERR_BUG; + devc = sdi->priv; /* Allocate memory for the FTDI context and initialize it. */ if (!(devc->ftdic = ftdi_new())) {