[SeaBIOS] [PATCH] usb: Only disable HID devices if both USB_MOUSE and USB_KEYBOARD are off.

Kevin O'Connor kevin at koconnor.net
Tue Apr 1 05:56:01 CEST 2014


Fix typo in code causing both CONFIG_USB_MOUSE and CONFIG_USB_KEYBOARD
to be effectively disabled if either is disabled.

Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
---
 src/hw/usb-hid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hw/usb-hid.c b/src/hw/usb-hid.c
index e94aa16..13f134c 100644
--- a/src/hw/usb-hid.c
+++ b/src/hw/usb-hid.c
@@ -109,7 +109,7 @@ usb_mouse_setup(struct usbdevice_s *usbdev
 int
 usb_hid_setup(struct usbdevice_s *usbdev)
 {
-    if (! CONFIG_USB_KEYBOARD || ! CONFIG_USB_MOUSE)
+    if (! CONFIG_USB_KEYBOARD && ! CONFIG_USB_MOUSE)
         return -1;
     dprintf(2, "usb_hid_setup %p\n", usbdev->defpipe);
 
-- 
1.9.0




More information about the SeaBIOS mailing list