diff options
Diffstat (limited to 'kjarna/protocol.c')
| -rw-r--r-- | kjarna/protocol.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/kjarna/protocol.c b/kjarna/protocol.c deleted file mode 100644 index e4be9cd..0000000 --- a/kjarna/protocol.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <efi/error.h> - -#include "kjarna_efi.h" - -void *efi_get_protocol(EFI_HANDLE handle, EFI_GUID *guid) -{ - void *protocol; - - efi_errno = gBS->OpenProtocol( - handle, - guid, - &protocol, - efi_context->handle, - nullptr, - EFI_OPEN_PROTOCOL_GET_PROTOCOL); - - if (EFI_ERROR(efi_errno)) - { - return nullptr; - } - - return protocol; -} - |
