summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/boot/ofw/libofw/ofw_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/ofw_console.c b/sys/boot/ofw/libofw/ofw_console.c
index 3fa2497..77d9ad5 100644
--- a/sys/boot/ofw/libofw/ofw_console.c
+++ b/sys/boot/ofw/libofw/ofw_console.c
@@ -115,7 +115,7 @@ ofw_cons_poll()
if (saved_char != -1)
return 1;
- if (OF_read(stdin, &ch, 1) != 0) {
+ if (OF_read(stdin, &ch, 1) > 0) {
saved_char = ch;
return 1;
}
OpenPOWER on IntegriCloud