USB: serial: remove endpoints setting checks from core and header
[deliverable/linux.git] / drivers / usb / serial / usb-serial.c
index aea861e9173e89f7742ce2d2076a70ff6a3e4126..5b464811fa4d062f136caa44a68ee62d840f0673 100644 (file)
@@ -861,22 +861,6 @@ int usb_serial_probe(struct usb_interface *interface,
        serial->num_interrupt_in = num_interrupt_in;
        serial->num_interrupt_out = num_interrupt_out;
 
-#if 0
-       /* check that the device meets the driver's requirements */
-       if ((type->num_interrupt_in != NUM_DONT_CARE &&
-                               type->num_interrupt_in != num_interrupt_in)
-                       || (type->num_interrupt_out != NUM_DONT_CARE &&
-                               type->num_interrupt_out != num_interrupt_out)
-                       || (type->num_bulk_in != NUM_DONT_CARE &&
-                               type->num_bulk_in != num_bulk_in)
-                       || (type->num_bulk_out != NUM_DONT_CARE &&
-                               type->num_bulk_out != num_bulk_out)) {
-               dbg("wrong number of endpoints");
-               kfree(serial);
-               return -EIO;
-       }
-#endif
-
        /* found all that we need */
        dev_info(&interface->dev, "%s converter detected\n",
                        type->description);
This page took 0.027522 seconds and 5 git commands to generate.