]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/pipistrello-ols/protocol.c
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
[libsigrok.git] / src / hardware / pipistrello-ols / protocol.c
index 53ab5324c03c24a0400e2c405de8b37650823739..62d77e96576ffc88e8507766c3e459ed1527b91d 100644 (file)
@@ -226,7 +226,7 @@ SR_PRIV struct sr_dev_inst *p_ols_get_metadata(uint8_t *buf, int bytes_read, str
        guchar tmp_c;
        int index, i;
 
-       sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, NULL, NULL, NULL);
+       sdi = sr_dev_inst_new(SR_ST_INACTIVE, NULL, NULL, NULL);
        sdi->driver = di;
        sdi->priv = devc;