summaryrefslogtreecommitdiff
path: root/cmd/bootefi.c
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 /cmd/bootefi.c
parentff0de1f0557ed7d2dab47ba976a37347a1fdc432 (diff)
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 'cmd/bootefi.c')
-rw-r--r--cmd/bootefi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index 578dbb19a7e..c1454ffb948 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -107,7 +107,6 @@ static int do_efi_selftest(void)
/* Execute the test */
ret = EFI_CALL(efi_selftest(&image_obj->header, &systab));
- efi_restore_gd();
free(loaded_image_info->load_options);
efi_free_pool(test_device_path);
efi_free_pool(test_image_path);