mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 00:49:43 +00:00
efi_loader: superfluous check in efi_remove_protocol()
efi_search_protocol() already checks that the GUID matches. Don't check a second time. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
ab557141c2
commit
61c63db7fe
1 changed files with 0 additions and 2 deletions
|
@ -513,8 +513,6 @@ efi_status_t efi_remove_protocol(const efi_handle_t handle,
|
|||
ret = efi_search_protocol(handle, protocol, &handler);
|
||||
if (ret != EFI_SUCCESS)
|
||||
return ret;
|
||||
if (guidcmp(handler->guid, protocol))
|
||||
return EFI_INVALID_PARAMETER;
|
||||
if (handler->protocol_interface != protocol_interface)
|
||||
return EFI_INVALID_PARAMETER;
|
||||
list_del(&handler->link);
|
||||
|
|
Loading…
Reference in a new issue