From 8a58419d37bdaff02f1e5540ec76f3bffdaf951f Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Wed, 19 Nov 2014 14:12:48 +0100 Subject: [PATCH] Finish fixing broken sr_config_list() logic. --- src/hwdriver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hwdriver.c b/src/hwdriver.c index c2ce6e6e..13be087a 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -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;