summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2026-04-21 00:03:21 +0200
committerHeinrich Schuchardt <[email protected]>2026-05-01 10:30:03 +0200
commit82539af483175e076f3727b51e23dff020eeec41 (patch)
tree7ef2a3ddb2768fdee629ebf367a621de948e95dc /boot
parent257f9f52738641f8981b3ccb17d56567d145a084 (diff)
efi_loader: centralize messaging for efi_init_obj_list
If efi_init_obj_list() fails we cannot use the UEFI sub-system. * Instead of having messages for this everywhere write an error message in efi_init_obj_list(). * Always use (ret != EFI_SUCCESS) when checking the return value of efi_init_obj_list(). * Remove the return code from the error message as it does not help users to understand which initialization went wrong. Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'boot')
-rw-r--r--boot/bootmeth_efi_mgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/bootmeth_efi_mgr.c b/boot/bootmeth_efi_mgr.c
index 05fc35d01a9..6e70c36ad99 100644
--- a/boot/bootmeth_efi_mgr.c
+++ b/boot/bootmeth_efi_mgr.c
@@ -58,8 +58,8 @@ static int efi_mgr_read_bootflow(struct udevice *dev, struct bootflow *bflow)
}
ret = efi_init_obj_list();
- if (ret)
- return log_msg_ret("init", ret);
+ if (ret != EFI_SUCCESS)
+ return ret;
/* Enable this method if the "BootOrder" UEFI exists. */
bootorder = efi_get_var(u"BootOrder", &efi_global_variable_guid,