git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d6979c8
)
Remove duplicate init code
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Sat, 15 Jan 2011 15:07:11 +0000 (16:07 +0100)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Sat, 15 Jan 2011 15:07:11 +0000 (16:07 +0100)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
b248c47
..
328a3e6
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-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);