提交 61c63db7 编写于 作者: H Heinrich Schuchardt

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: NHeinrich Schuchardt <xypron.glpk@gmx.de>
上级 ab557141
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册