Skip to content

Commit 36c6688

Browse files
cmd: bootuimage: update return code
Signed-off-by: Joseph Chen <[email protected]> Change-Id: I9bd10b448b409fe9e74c7b4c56f5ec7ec3cd4a85
1 parent b72261d commit 36c6688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/bootuimage.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ static int do_boot_uimage(cmd_tbl_t *cmdtp, int flag,
9393

9494
if (ret && argc != 1) {
9595
uimage_sysmem_free_each(img, ramdisk_sz);
96-
ret = -1;
96+
goto out;
9797
}
9898

99-
return ret;
99+
return CMD_RET_SUCCESS;
100100
out:
101-
return -1;
101+
return CMD_RET_FAILURE;
102102
}
103103

104104
U_BOOT_CMD(

0 commit comments

Comments
 (0)