]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hantek-dso/api.c
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
[libsigrok.git] / src / hardware / hantek-dso / api.c
index 3ad928bdd79ac05e2a1d28baf91043b812f92c6f..6f1580940f32afe4dcf6fc66ddedc2aac37fb254 100644 (file)
@@ -166,7 +166,7 @@ static struct sr_dev_inst *dso_dev_new(const struct dso_profile *prof)
        struct dev_context *devc;
        int i;
 
-       sdi = sr_dev_inst_new(0, SR_ST_INITIALIZING,
+       sdi = sr_dev_inst_new(SR_ST_INITIALIZING,
                prof->vendor, prof->model, NULL);
        if (!sdi)
                return NULL;