efi_loader: avoid EFI_CALL() when draining console
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 15 Oct 2022 10:22:37 +0000 (12:22 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 16 Oct 2022 10:23:22 +0000 (12:23 +0200)
Use internal function.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_console.c

index 6d4784e..ab83f8b 100644 (file)
@@ -1359,9 +1359,7 @@ efi_status_t efi_console_get_u16_string(struct efi_simple_text_input_protocol *c
               ANSI_CLEAR_LINE_TO_END
               ANSI_CURSOR_SHOW, row, col);
 
-       ret = EFI_CALL(cin->reset(cin, false));
-       if (ret != EFI_SUCCESS)
-               return ret;
+       efi_cin_empty_buffer();
 
        for (;;) {
                do {