Finish fixing broken sr_config_list() logic.

This commit is contained in:
Aurelien Jacobs 2014-11-19 14:12:48 +01:00 committed by Bert Vermeulen
parent a24da9a813
commit 8a58419d37
1 changed files with 2 additions and 2 deletions

View File

@ -616,9 +616,9 @@ SR_API int sr_config_list(const struct sr_dev_driver *driver,
int ret; int ret;
if (!driver || !data) if (!driver || !data)
ret = SR_ERR; return SR_ERR;
else if (!driver->config_list) 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) { else if (key != SR_CONF_SCAN_OPTIONS && key != SR_CONF_DEVICE_OPTIONS) {
if (check_key(driver, sdi, cg, key, SR_CONF_LIST) != SR_OK) if (check_key(driver, sdi, cg, key, SR_CONF_LIST) != SR_OK)
return SR_ERR_ARG; return SR_ERR_ARG;