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