1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-26 10:25:06 +03:00

libusbgx: ms: fix: Use correct variable to check function result

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
This commit is contained in:
Krzysztof Opasiak 2016-01-25 16:37:35 +01:00
parent ee08dd9d7c
commit 7679dcb903

View file

@ -232,7 +232,7 @@ static int ms_libconfig_import(struct usbg_function *f, config_setting_t *root)
goto out;
luns_node = config_setting_get_member(root, "luns");
if (!node) {
if (!luns_node) {
ret = USBG_ERROR_INVALID_PARAM;
goto out;
}