]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: capsule: return a correct error code at find_boot_device()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 20 Apr 2021 01:03:16 +0000 (10:03 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 24 Apr 2021 04:53:40 +0000 (06:53 +0200)
commitfbe3e462eca17c93bf91200a38f6f6e1b30208bd
treee4f40d81b50610d6b3a6bd0f5046e08288851d7b
parent1510b39b261c1ad51170c0860fda14d4b8924f20
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>
lib/efi_loader/efi_capsule.c