Skip to content

Commit

Permalink
efi_loader: avoid EFI_CALL() when draining console
Browse files Browse the repository at this point in the history
Use internal function.

Signed-off-by: Heinrich Schuchardt <[email protected]>
  • Loading branch information
xypron committed Oct 16, 2022
1 parent f327236 commit 7831d36
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/efi_loader/efi_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7831d36

Please sign in to comment.