Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/main.c

    r5e07e2b5 r8f8f34ad  
    4242
    4343#include <usb/devdrv.h>
    44 #include <usb/devpoll.h>
    4544
    4645#include "usbhid.h"
     
    7574static int usb_hid_try_add_device(usb_device_t *dev)
    7675{
     76        assert(dev != NULL);
     77       
    7778        /*
    7879         * Initialize device (get and process descriptors, get address, etc.)
     
    178179        usb_log_debug("usb_hid_add_device()\n");
    179180       
     181        if (dev == NULL) {
     182                usb_log_warning("Wrong parameter given for add_device().\n");
     183                return EINVAL;
     184        }
     185       
    180186        if (dev->interface_no < 0) {
    181187                usb_log_warning("Device is not a supported HID device.\n");
Note: See TracChangeset for help on using the changeset viewer.