]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hantek-dso/api.c
rigol-ds1xx2: Code cleanup
[libsigrok.git] / hardware / hantek-dso / api.c
index 9e5629ee2d4ad4ad3d6a7d703cc6683e83de30d4..a56feb6f5843fcb22ec9513839b9f75f42538111 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
  *
@@ -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