]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/demo/demo.c
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
[libsigrok.git] / src / hardware / demo / demo.c
index a870c112f28431856a322eb99c80809f9294c36c..73000bc77e96d2000ddc9a0ba64e72082604c4a5 100644 (file)
@@ -287,7 +287,7 @@ static GSList *scan(GSList *options)
        }
 
        devices = NULL;
-       sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, "Demo device", NULL, NULL);
+       sdi = sr_dev_inst_new(SR_ST_ACTIVE, "Demo device", NULL, NULL);
        if (!sdi) {
                sr_err("Device instance creation failed.");
                return NULL;