]> sigrok.org Git - libsigrok.git/commitdiff
Fix broken sr_config_list() logic.
authorBert Vermeulen <redacted>
Tue, 18 Nov 2014 14:46:24 +0000 (15:46 +0100)
committerBert Vermeulen <redacted>
Tue, 18 Nov 2014 14:46:24 +0000 (15:46 +0100)
src/hwdriver.c

index fe2a85189bcb917bb8d0bff3196b78bf82bbcd31..81e7b588704fe30db6be3489288d02416dd9045f 100644 (file)
@@ -621,7 +621,7 @@ SR_API int sr_config_list(const struct sr_dev_driver *driver,
                if (check_key(driver, sdi, cg, key, SR_CONF_LIST) != SR_OK)
                        return SR_ERR_ARG;
        }
-       else if ((ret = driver->config_list(key, data, sdi, cg)) == SR_OK)
+       if ((ret = driver->config_list(key, data, sdi, cg)) == SR_OK)
                g_variant_ref_sink(*data);
 
        return ret;