[PATCH 2.6.12.5]error condition fix in usbnet

From: lepton
Date: Tue Aug 23 2005 - 23:14:17 EST


Hi!

I thinks this condition is strange, it could be a type error.
See the following patch.

Signed-off-by: Wu Tao <ytht.net@xxxxxxxxx>

diff -pru linux-2.6-curr/drivers/usb/net/usbnet.c linux-2.6-curr-lepton/drivers/usb/net/usbnet.c
--- linux-2.6-curr/drivers/usb/net/usbnet.c 2005-06-30 07:00:53.000000000 +0800
+++ linux-2.6-curr-lepton/drivers/usb/net/usbnet.c 2005-08-24 11:26:49.000000000 +0800
@@ -3807,7 +3807,7 @@ usbnet_probe (struct usb_interface *udev
if ((dev->driver_info->flags & FLAG_ETHER) != 0
&& (net->dev_addr [0] & 0x02) == 0)
strcpy (net->name, "eth%d");
- } else if (!info->in || info->out)
+ } else if (!info->in || !info->out)
status = get_endpoints (dev, udev);
else {
dev->in = usb_rcvbulkpipe (xdev, info->in);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/