Changes in uspace/drv/usbhid/main.c [8f8f34ad:5e07e2b5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/main.c
r8f8f34ad r5e07e2b5 42 42 43 43 #include <usb/devdrv.h> 44 #include <usb/devpoll.h> 44 45 45 46 #include "usbhid.h" … … 74 75 static int usb_hid_try_add_device(usb_device_t *dev) 75 76 { 76 assert(dev != NULL);77 78 77 /* 79 78 * Initialize device (get and process descriptors, get address, etc.) … … 179 178 usb_log_debug("usb_hid_add_device()\n"); 180 179 181 if (dev == NULL) {182 usb_log_warning("Wrong parameter given for add_device().\n");183 return EINVAL;184 }185 186 180 if (dev->interface_no < 0) { 187 181 usb_log_warning("Device is not a supported HID device.\n");
Note:
See TracChangeset
for help on using the changeset viewer.