]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/lascar-el-usb/protocol.c
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
[libsigrok.git] / src / hardware / lascar-el-usb / protocol.c
index 49c5cd0a3687e3416c8585edd72c1634cca7e204..7459a1f183f8a056888aec197129ff6cc2dbb2aa 100644 (file)
@@ -323,7 +323,7 @@ static struct sr_dev_inst *lascar_identify(unsigned char *config)
                        return NULL;
                }
 
-               if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, LASCAR_VENDOR,
+               if (!(sdi = sr_dev_inst_new(SR_ST_INACTIVE, LASCAR_VENDOR,
                                profile->modelname, firmware)))
                        return NULL;
                sdi->driver = di;