]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: superfluous efi_restore_gd after EFI_CALL
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 19 Apr 2024 09:59:01 +0000 (11:59 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 1 May 2024 05:37:32 +0000 (07:37 +0200)
commita55039d6a847d8c83ea2175e09d3eed6d7d83571
treef95a0bfe0f170b0d027189eaed9b034da4e55220
parentff0de1f0557ed7d2dab47ba976a37347a1fdc432
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>
cmd/bootefi.c
cmd/efidebug.c
lib/efi_loader/efi_helper.c