summaryrefslogtreecommitdiff
path: root/src/grp-boot/systemd-boot/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/grp-boot/systemd-boot/console.c')
-rw-r--r--src/grp-boot/systemd-boot/console.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/grp-boot/systemd-boot/console.c b/src/grp-boot/systemd-boot/console.c
index c436f8b476..2b797c9a5f 100644
--- a/src/grp-boot/systemd-boot/console.c
+++ b/src/grp-boot/systemd-boot/console.c
@@ -93,12 +93,8 @@ EFI_STATUS console_key_read(UINT64 *key, BOOLEAN wait) {
}
/* 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;