]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/zeroplus-logic-cube/api.c
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
[libsigrok.git] / src / hardware / zeroplus-logic-cube / api.c
index 19cf862e19da675a4d092099b0cf74a42ff356d1..9789713d8c34c9163e47478acc113334dceedff3 100644 (file)
@@ -221,7 +221,7 @@ static GSList *scan(GSList *options)
                sr_info("Found ZEROPLUS %s.", prof->model_name);
 
                /* Register the device with libsigrok. */
-               if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE,
+               if (!(sdi = sr_dev_inst_new(SR_ST_INACTIVE,
                                VENDOR_NAME, prof->model_name, NULL))) {
                        sr_err("%s: sr_dev_inst_new failed", __func__);
                        return NULL;