From: Heinrich Schuchardt Date: Sat, 15 Oct 2022 10:22:37 +0000 (+0200) Subject: efi_loader: avoid EFI_CALL() when draining console X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7831d36f5bd8c321a9054912c1675c840978314d;p=u-boot.git efi_loader: avoid EFI_CALL() when draining console Use internal function. Signed-off-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c index 6d4784e140..ab83f8bf82 100644 --- a/lib/efi_loader/efi_console.c +++ b/lib/efi_loader/efi_console.c @@ -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 {