patch-2.3.29 linux/drivers/usb/usb.c
Next file: linux/drivers/usb/usb_scsi.c
Previous file: linux/drivers/usb/uhci.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Nov 21 17:23:32 1999
- Orig file:
v2.3.28/linux/drivers/usb/usb.c
- Orig date:
Thu Nov 18 20:25:37 1999
diff -u --recursive --new-file v2.3.28/linux/drivers/usb/usb.c linux/drivers/usb/usb.c
@@ -383,7 +383,7 @@
return -1;
}
- interface = &dev->actconfig->interface[ifnum];
+ interface = dev->actconfig->interface + ifnum;
if (usb_interface_claimed(interface))
return -1;
@@ -416,7 +416,7 @@
for (ifnum = 0; ifnum < dev->actconfig->bNumInterfaces; ifnum++) {
/* if this interface hasn't already been claimed */
- if (!usb_interface_claimed(dev->actconfig->interface)) {
+ if (!usb_interface_claimed(dev->actconfig->interface + ifnum)) {
if (usb_find_interface_driver(dev, ifnum))
rejected++;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)