From: Bert Vermeulen Date: Tue, 18 Nov 2014 14:46:24 +0000 (+0100) Subject: Fix broken sr_config_list() logic. X-Git-Tag: libsigrok-0.4.0~754 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cf3db38193bf1b2d36628ebe57a0204d77f68da3;p=libsigrok.git Fix broken sr_config_list() logic. --- diff --git a/src/hwdriver.c b/src/hwdriver.c index fe2a8518..81e7b588 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -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;