]> sigrok.org Git - libsigrok.git/commitdiff
hantek-dso: Consistently return SR_ERR_ARG if sdi is needed
authorBert Vermeulen <redacted>
Thu, 18 Apr 2013 19:37:38 +0000 (21:37 +0200)
committerBert Vermeulen <redacted>
Thu, 18 Apr 2013 20:48:29 +0000 (22:48 +0200)
hardware/hantek-dso/api.c

index 9e5629ee2d4ad4ad3d6a7d703cc6683e83de30d4..fd4f61575247a6c2febe28b98645f0ce53b7dc96 100644 (file)
@@ -409,12 +409,10 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi)
        struct sr_usb_dev_inst *usb;
        char str[128];
 
-       (void)sdi;
-
        switch (id) {
        case SR_CONF_CONN:
                if (!sdi || !sdi->conn)
-                       return SR_ERR;
+                       return SR_ERR_ARG;
                usb = sdi->conn;
                if (usb->address == 255)
                        /* Device still needs to re-enumerate after firmware