usb: Only disable HID devices if both USB_MOUSE and USB_KEYBOARD are off.
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@koconnor.net>
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 @@
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);