mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
efi_loader: capsule: return a correct error code at find_boot_device()
In case of failure at efi_get_variable_int("BootOrder"), we should skip examining boot option variables and return an appropriate error code which is the one the function returned. Fixes: CID 331153 Code maintainability issues (UNUSED_VALUE) Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
3627cf4bff
commit
2c1a684049
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,6 @@ skip:
|
|||
efi_free_pool(boot_dev);
|
||||
boot_dev = NULL;
|
||||
}
|
||||
out:
|
||||
if (boot_dev) {
|
||||
u16 *path_str;
|
||||
|
||||
|
@ -703,6 +702,7 @@ out:
|
|||
} else {
|
||||
ret = EFI_NOT_FOUND;
|
||||
}
|
||||
out:
|
||||
free(boot_order);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue