]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hameg-hmo/api.c
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
[libsigrok.git] / src / hardware / hameg-hmo / api.c
index 4ce1fd7fb64b3543e4150ab2fb160284ad75d131..78cdc1733157fc0b5dba9cb47bfd5af67b1b2cf1 100644 (file)
@@ -75,7 +75,7 @@ static struct sr_dev_inst *hmo_probe_serial_device(struct sr_scpi_dev_inst *scpi
        if (check_manufacturer(hw_info->manufacturer) != SR_OK)
                goto fail;
 
-       if (!(sdi = sr_dev_inst_new(0, SR_ST_ACTIVE,
+       if (!(sdi = sr_dev_inst_new(SR_ST_ACTIVE,
                                    hw_info->manufacturer, hw_info->model,
                                    hw_info->firmware_version))) {
                goto fail;