Misc minor improvements.
[seabios.git] / src / mouse.c
index 22d0148fdae5b92706d777d2ca32df35f04e76af..1435c92fe7a4bd3f302010c3423650dd79c985c9 100644 (file)
@@ -97,7 +97,7 @@ mouse_15c201(struct bregs *regs)
 {
     u8 param[2];
     int ret = aux_command(PSMOUSE_CMD_RESET_BAT, param);
-    if (ret) {
+    if (ret != 0 && ret != 2) {
         set_code_fail(regs, RET_ENEEDRESEND);
         return;
     }
@@ -335,10 +335,13 @@ void VISIBLE16
 handle_74()
 {
     debug_isr(DEBUG_ISR_74);
+    if (! CONFIG_PS2_MOUSE)
+        goto done;
 
     irq_enable();
     int74_function();
     irq_disable();
 
+done:
     eoi_pic2();
 }