From: Bert Vermeulen Date: Thu, 2 Oct 2014 13:03:18 +0000 (+0200) Subject: hantek-dso: Code cleanup. X-Git-Tag: libsigrok-0.4.0~897 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8219214ff077db3f72a2996da417c0bea3563987;p=libsigrok.git hantek-dso: Code cleanup. This cleans up a warning generated by clang's static analyzer. --- diff --git a/src/hardware/hantek-dso/api.c b/src/hardware/hantek-dso/api.c index 6f158094..e34f328e 100644 --- a/src/hardware/hantek-dso/api.c +++ b/src/hardware/hantek-dso/api.c @@ -342,7 +342,6 @@ static GSList *scan(GSList *options) sdi->connection_id = g_strdup(connection_id); sdi->status = SR_ST_INACTIVE; devices = g_slist_append(devices, sdi); - devc = sdi->priv; sdi->inst_type = SR_INST_USB; sdi->conn = sr_usb_dev_inst_new( libusb_get_bus_number(devlist[i]),