Remove duplicate init code
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 15 Jan 2011 15:07:11 +0000 (16:07 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 15 Jan 2011 15:07:11 +0000 (16:07 +0100)
src/ftdi.c

index b248c47..328a3e6 100644 (file)
@@ -531,19 +531,6 @@ int ftdi_usb_open_dev(struct ftdi_context *ftdi, libusb_device *dev)
     else if (desc.bcdDevice == 0x800)
         ftdi->type = TYPE_4232H;
 
-    // Set default interface on dual/quad type chips
-    switch(ftdi->type)
-    {
-        case TYPE_2232C:
-        case TYPE_2232H:
-        case TYPE_4232H:
-            if (!ftdi->index)
-                ftdi->index = INTERFACE_A;
-            break;
-        default:
-            break;
-    }
-
     // Determine maximum packet size
     ftdi->max_packet_size = _ftdi_determine_max_packet_size(ftdi, dev);