Skip to content

Commit

Permalink
efi: Actually return a character in efi_getchar()
Browse files Browse the repository at this point in the history
Since efi_getchar() goes to the trouble of reading a character from
user input it should return it to the caller. Previously we were
returning garbage.

Signed-off-by: Chandramouli Narayanan <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
  • Loading branch information
Chandramouli Narayanan authored and Matt Fleming committed Feb 2, 2012
1 parent 6bdefad commit 98bf451
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions efi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ char efi_getchar(void)
} while (status == EFI_NOT_READY);

c = (char)key.UnicodeChar;
return c;
}

struct input_ops efi_iops = {
Expand Down

0 comments on commit 98bf451

Please sign in to comment.