[PATCH 1/1] efi_loader: simplify efi_uninstall_protocol()
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Sun Jun 18 09:03:17 CEST 2023
The call to efi_search_obj() is redundant as the function is called in
efi_search_protocol() too.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
lib/efi_loader/efi_boottime.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index d5065f296a..e29645cd61 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -1342,12 +1342,6 @@ static efi_status_t efi_uninstall_protocol
struct efi_open_protocol_info_item *pos;
efi_status_t r;
- /* Check handle */
- efiobj = efi_search_obj(handle);
- if (!efiobj) {
- r = EFI_INVALID_PARAMETER;
- goto out;
- }
/* Find the protocol on the handle */
r = efi_search_protocol(handle, protocol, &handler);
if (r != EFI_SUCCESS)
--
2.40.1
More information about the U-Boot
mailing list