]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
ps2: Remove stale check for timeout warning on reset
authorKevin O'Connor <kevin@koconnor.net>
Mon, 15 Aug 2016 02:07:19 +0000 (22:07 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 15 Aug 2016 02:07:19 +0000 (22:07 -0400)
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>
src/hw/ps2port.c

index d5504f71ea40bed9e7f3bf982e6027781879b2c6..d9727d265646d3dded4178cc59122a9193fdf33f 100644 (file)
@@ -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();