summaryrefslogtreecommitdiffstats
path: root/src/interface
diff options
context:
space:
mode:
authorMichael Brown2014-05-19 21:23:31 +0200
committerMichael Brown2014-05-19 21:23:31 +0200
commit95cff6a4d87a83093d3c685d7743f3c13a44a177 (patch)
tree47cbbfccd1038309433fc4f168b11b46a95f3758 /src/interface
parent[nfs] Rewrite NFS URI handling (diff)
downloadipxe-95cff6a4d87a83093d3c685d7743f3c13a44a177.tar.gz
ipxe-95cff6a4d87a83093d3c685d7743f3c13a44a177.tar.xz
ipxe-95cff6a4d87a83093d3c685d7743f3c13a44a177.zip
[efi] Allow for optional protocols
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/efi/efi_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interface/efi/efi_init.c b/src/interface/efi/efi_init.c
index b4ed5c147..e6ef3d054 100644
--- a/src/interface/efi/efi_init.c
+++ b/src/interface/efi/efi_init.c
@@ -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;
}
}