patch-2.4.21 linux-2.4.21/drivers/usb/serial/usbserial.c
Next file: linux-2.4.21/drivers/usb/serial/visor.c
Previous file: linux-2.4.21/drivers/usb/serial/pl2303.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
2003-06-13 07:51:37.000000000 -0700
- Orig file:
linux-2.4.20/drivers/usb/serial/usbserial.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/drivers/usb/serial/usbserial.c linux-2.4.21/drivers/usb/serial/usbserial.c
@@ -1188,8 +1188,10 @@
(dev->descriptor.idProduct == ATEN_PRODUCT_ID))) {
if (ifnum == 1) {
/* check out the endpoints of the other interface*/
- interface = &dev->actconfig->interface[ifnum ^ 1];
- iface_desc = &interface->altsetting[0];
+ struct usb_interface *other_iface;
+
+ other_iface = &dev->actconfig->interface[ifnum ^ 1];
+ iface_desc = &other_iface->altsetting[0];
for (i = 0; i < iface_desc->bNumEndpoints; ++i) {
endpoint = &iface_desc->endpoint[i];
if ((endpoint->bEndpointAddress & 0x80) &&
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)