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:
parent
ee08dd9d7c
commit
7679dcb903
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue