diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-04-19 11:59:01 +0200 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2024-05-01 07:37:32 +0200 |
| commit | a55039d6a847d8c83ea2175e09d3eed6d7d83571 (patch) | |
| tree | f95a0bfe0f170b0d027189eaed9b034da4e55220 /cmd/efidebug.c | |
| parent | ff0de1f0557ed7d2dab47ba976a37347a1fdc432 (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 <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'cmd/efidebug.c')
| -rw-r--r-- | cmd/efidebug.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c index a587860e2a5..d1f86e76e09 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -1404,8 +1404,6 @@ static __maybe_unused int do_efi_test_bootmgr(struct cmd_tbl *cmdtp, int flag, if (ret && exit_data) efi_free_pool(exit_data); - efi_restore_gd(); - free(load_options); return CMD_RET_SUCCESS; } |
