]> sigrok.org Git - libsigrok.git/commitdiff
hantek-dso: Code cleanup.
authorBert Vermeulen <redacted>
Thu, 2 Oct 2014 13:03:18 +0000 (15:03 +0200)
committerBert Vermeulen <redacted>
Thu, 2 Oct 2014 13:03:18 +0000 (15:03 +0200)
This cleans up a warning generated by clang's static analyzer.

src/hardware/hantek-dso/api.c

index 6f1580940f32afe4dcf6fc66ddedc2aac37fb254..e34f328eb20a89eabec27981be9ab5a9bebefaa9 100644 (file)
@@ -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]),