about summary refs log tree commit diff
path: root/modules/hardware/t100ha/fix-bootloader.patch
blob: 390bef44b68c0e8e15638f394353c52e2a929e90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/boot/efi/console.c b/src/boot/efi/console.c
index c436f8b..586905e 100644
--- a/src/boot/efi/console.c
+++ b/src/boot/efi/console.c
@@ -92,13 +92,8 @@ EFI_STATUS console_key_read(UINT64 *key, BOOLEAN wait) {
                 checked = TRUE;
         }
 
-        /* wait until key is pressed */
-        if (wait) {
-                if (TextInputEx)
-                        uefi_call_wrapper(BS->WaitForEvent, 3, 1, &TextInputEx->WaitForKeyEx, &index);
-                else
-                        uefi_call_wrapper(BS->WaitForEvent, 3, 1, &ST->ConIn->WaitForKey, &index);
-        }
+        if (wait)
+            uefi_call_wrapper(BS->WaitForEvent, 3, 1, &ST->ConIn->WaitForKey, &index);
 
         if (TextInputEx) {
                 EFI_KEY_DATA keydata;