aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-08-14 22:07:19 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-08-14 22:07:19 -0400
commit7bd1480a3bea4dae25d0bc866eb31a365fc2f77f (patch)
treef1ef573ceb214fdc59d3e07e68f396d24fbf980b
parent19e8ea6312f3f60c34c2c20f95fb81306b320f74 (diff)
downloadseabios-7bd1480a3bea4dae25d0bc866eb31a365fc2f77f.tar.gz
seabios-7bd1480a3bea4dae25d0bc866eb31a365fc2f77f.tar.xz
seabios-7bd1480a3bea4dae25d0bc866eb31a365fc2f77f.zip
ps2: Remove stale check for timeout warning on reset
Commit 4ce5d207 removed the code to wait for a possible second byte from a keyboard reset command, but it did not remove the extra check when warning in ps2_recvbyte(). Remove the now stale code in ps2_recvbyte(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/hw/ps2port.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hw/ps2port.c b/src/hw/ps2port.c
index d5504f7..d9727d2 100644
--- a/src/hw/ps2port.c
+++ b/src/hw/ps2port.c
@@ -179,9 +179,7 @@ ps2_recvbyte(int aux, int needack, int timeout)
}
if (timer_check(end)) {
- // Don't warn on second byte of a reset
- if (timeout > 100)
- warn_timeout();
+ warn_timeout();
return -1;
}
yield();