diff options
| author | Gary Ching-Pang Lin <glin@suse.com> | 2013-09-26 11:58:02 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-09-26 11:58:02 -0400 |
| commit | 44d7d0e66819790e9f3de20693ffc6374182d063 (patch) | |
| tree | f3b77ab07674dbf6e1cea42d96e715c8b6a2f69f | |
| parent | 9a86568e1918bb38d3f134ed3451b380f09c2b1a (diff) | |
| download | efi-boot-shim-44d7d0e66819790e9f3de20693ffc6374182d063.tar.gz efi-boot-shim-44d7d0e66819790e9f3de20693ffc6374182d063.zip | |
MokManager: remove the duplicate get_keystroke()
| -rw-r--r-- | MokManager.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/MokManager.c b/MokManager.c index 67c49ad4..792df32d 100644 --- a/MokManager.c +++ b/MokManager.c @@ -73,18 +73,6 @@ static EFI_STATUS get_variable (CHAR16 *name, EFI_GUID guid, UINT32 *attributes, return efi_status; } -static EFI_INPUT_KEY get_keystroke (void) -{ - EFI_INPUT_KEY key; - UINTN EventIndex; - - uefi_call_wrapper(BS->WaitForEvent, 3, 1, &ST->ConIn->WaitForKey, - &EventIndex); - uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &key); - - return key; -} - static EFI_STATUS get_sha1sum (void *Data, int DataSize, UINT8 *hash) { EFI_STATUS status; @@ -553,7 +541,7 @@ static UINT8 get_line (UINT32 *length, CHAR16 *line, UINT32 line_max, UINT8 show int count = 0; do { - key = get_keystroke(); + key = console_get_keystroke(); if ((count >= line_max && key.UnicodeChar != CHAR_BACKSPACE) || |
