]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: remove efi_delete_handle on loadfile2
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Sun, 16 Oct 2022 08:36:32 +0000 (11:36 +0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 16 Oct 2022 10:23:22 +0000 (12:23 +0200)
commit70089c13a73f58315547982573be2016e7a70958
tree905752b31d7b4161ed2f166b3d1ab0d98c07333c
parentf4d52c41595b8af1813413020773b5d59f226622
efi_loader: remove efi_delete_handle on loadfile2

Loadfile2 code is installing two protocols on it's own handle
and uses efi_delete_handle() to clean it up on failure(s). However
commit 05c4c9e21ae6 ("efi_loader: define internal implementations of
install/uninstallmultiple") prepares the ground for us to clean up
efi_delete_handle() used in favor of Install/UninstallMultipleProtocol.

While at it clean up the non needed void casts to (void *) on the
protolcol installation.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
cmd/bootefi.c
include/efi_loader.h
lib/efi_loader/efi_load_initrd.c