aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-04-19 11:59:01 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-05-01 07:37:32 +0200
commita55039d6a847d8c83ea2175e09d3eed6d7d83571 (patch)
treef95a0bfe0f170b0d027189eaed9b034da4e55220 /lib
parentff0de1f0557ed7d2dab47ba976a37347a1fdc432 (diff)
downloadu-boot-a55039d6a847d8c83ea2175e09d3eed6d7d83571.zip
u-boot-a55039d6a847d8c83ea2175e09d3eed6d7d83571.tar.gz
u-boot-a55039d6a847d8c83ea2175e09d3eed6d7d83571.tar.bz2
efi_loader: superfluous efi_restore_gd after EFI_CALL
EFI_CALL() invokes __efi_entry_check() which executes set_gd(efi_gd). There is no need to execute set_gd(efi_gd) again via efi_restore_gd(). Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_helper.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/efi_loader/efi_helper.c b/lib/efi_loader/efi_helper.c
index 6918fd5..9d7f82f 100644
--- a/lib/efi_loader/efi_helper.c
+++ b/lib/efi_loader/efi_helper.c
@@ -544,8 +544,6 @@ efi_status_t do_bootefi_exec(efi_handle_t handle, void *load_options)
}
}
- efi_restore_gd();
-
out:
free(load_options);