cmd: bootrkp: return CMD_RET_FAILURE on error

A cmd only returned with CMD_RET_XXX defined
by command_ret_t can ensure it work well when
called from shell.

Change-Id: I16e76ed62928380eaaf3c352efb4df9463b7e72d
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
This commit is contained in:
Andy Yan 2019-03-08 15:58:26 +08:00 committed by Jianhong Chen
parent 65f0143b26
commit 4701d790f4
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ static int do_boot_rockchip(cmd_tbl_t *cmdtp, int flag, int argc,
dev_desc = rockchip_get_bootdev();
if (!dev_desc) {
printf("%s: dev_desc is NULL!\n", __func__);
return -ENODEV;
return CMD_RET_FAILURE;
}
#ifdef CONFIG_ANDROID_KEYMASTER_CA