]> sigrok.org Git - libsigrok.git/commitdiff
ikalogic-scanalogic2: Let the sdi getter popuplage sdi->connection_id
authorSoeren Apel <redacted>
Thu, 16 Oct 2014 20:15:54 +0000 (22:15 +0200)
committerBert Vermeulen <redacted>
Fri, 17 Oct 2014 01:02:52 +0000 (03:02 +0200)
This fixes bug #440.

src/hardware/ikalogic-scanalogic2/api.c

index e9b7327ce5b34db3b9ce667a2d545d61249fe0ed..89d12ea9fb3a3fed7110e9ac8aee87d39a09893d 100644 (file)
@@ -71,7 +71,6 @@ static GSList *scan(GSList *options)
        struct device_info dev_info;
        int ret, i;
        char *fw_ver_str;
-       char connection_id[64];
 
        (void)options;
 
@@ -137,15 +136,11 @@ static GSList *scan(GSList *options)
                        continue;
                }
 
-               usb_get_port_path(libusb_get_device(usb->devhdl),
-                               connection_id, sizeof(connection_id));
-
                sdi->priv = devc;
                sdi->driver = di;
                sdi->inst_type = SR_INST_USB;
                sdi->conn = usb;
                sdi->serial_num = g_strdup_printf("%d", dev_info.serial);
-               sdi->connection_id = g_strdup(connection_id);
 
                for (i = 0; channel_names[i]; i++) {
                        ch = sr_channel_new(i, SR_CHANNEL_LOGIC, TRUE,