mirror of
https://github.com/ipxe/ipxe
synced 2025-12-16 17:41:18 +03:00
[efi] Allow for optional protocols
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -187,8 +187,9 @@ EFI_STATUS efi_init ( EFI_HANDLE image_handle,
|
||||
} else {
|
||||
DBGC ( systab, "EFI does not provide protocol %s\n",
|
||||
efi_guid_ntoa ( &prot->guid ) );
|
||||
/* All protocols are required */
|
||||
return efirc;
|
||||
/* Fail if protocol is required */
|
||||
if ( prot->required )
|
||||
return efirc;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user