]> sigrok.org Git - libsigrok.git/commitdiff
Finish fixing broken sr_config_list() logic.
authorAurelien Jacobs <redacted>
Wed, 19 Nov 2014 13:12:48 +0000 (14:12 +0100)
committerBert Vermeulen <redacted>
Wed, 19 Nov 2014 16:34:19 +0000 (17:34 +0100)
src/hwdriver.c

index c2ce6e6e2db6526b5e8f507abb186c4437075b3c..13be087aedb3391d35571e63ecc52304ac678523 100644 (file)
@@ -616,9 +616,9 @@ SR_API int sr_config_list(const struct sr_dev_driver *driver,
        int ret;
 
        if (!driver || !data)
-               ret = SR_ERR;
+               return SR_ERR;
        else if (!driver->config_list)
-               ret = SR_ERR_ARG;
+               return SR_ERR_ARG;
        else if (key != SR_CONF_SCAN_OPTIONS && key != SR_CONF_DEVICE_OPTIONS) {
                if (check_key(driver, sdi, cg, key, SR_CONF_LIST) != SR_OK)
                        return SR_ERR_ARG;