another "check ReadKeyStroke() for EFI_SUCCESS"
authorAhmet Inan <ainan@mathematik.uni-freiburg.de>
Thu, 16 May 2013 21:45:05 +0000 (23:45 +0200)
committerKay Sievers <kay@vrfy.org>
Fri, 17 May 2013 01:20:17 +0000 (03:20 +0200)
Just like with commit 9061fc1, trying to boot server without keyboard
resets timeout and prevents normal boot of default entry.

src/efi/gummiboot.c

index 7f09a9c..9a7f14b 100644 (file)
@@ -769,7 +769,7 @@ static BOOLEAN menu_run(Config *config, ConfigEntry **chosen_entry, CHAR16 *load
                 }
 
                 err = uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &key);
-                if (err == EFI_NOT_READY) {
+                if (err != EFI_SUCCESS) {
                         UINTN index;
 
                         if (timeout_remain == 0) {