mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-16 12:11:32 +00:00
thor: fix error path after g_dnl_register() failure
Set command return value and perform needed cleanup when g_dnl_register() function fails. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
This commit is contained in:
parent
fd15b58c1a
commit
0896d2caf7
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
ret = g_dnl_register("usb_dnl_thor");
|
||||
if (ret) {
|
||||
pr_err("g_dnl_register failed %d\n", ret);
|
||||
return ret;
|
||||
ret = CMD_RET_FAILURE;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
ret = thor_init();
|
||||
|
|
Loading…
Add table
Reference in a new issue