Fix incorrect return code of boot option update
Correct the return code for out-of-memory and no boot option found Signed-off-by: Raymond Mao <raymond.mao@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
339b527bd4
commit
9945bc4f86
@@ -2314,7 +2314,7 @@ static int do_eficonfig(struct cmd_tbl *cmdtp, int flag, int argc, char *const a
|
||||
return CMD_RET_FAILURE;
|
||||
|
||||
ret = efi_bootmgr_update_media_device_boot_option();
|
||||
if (ret != EFI_SUCCESS && ret != EFI_NOT_FOUND)
|
||||
if (ret != EFI_SUCCESS)
|
||||
return ret;
|
||||
|
||||
while (1) {
|
||||
|
||||
Reference in New Issue
Block a user