summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/cdc_ether.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-12-25 13:23:42 +0100
committerDavid S. Miller <davem@davemloft.net>2010-12-31 20:11:38 +0100
commitf5260f02e7903bb10e45b1bf3500eab6425edf5c (patch)
treee4a77d6012e352bd4d3a82612d38d6d63caa16db /drivers/net/usb/cdc_ether.c
parentbnx2: Update firmware and version (diff)
downloadlinux-f5260f02e7903bb10e45b1bf3500eab6425edf5c.tar.xz
linux-f5260f02e7903bb10e45b1bf3500eab6425edf5c.zip
USB: cdc_ether: remove unneeded check
We already verified that "dev->udev->actconfig->extralen" was non-zero so "len" is non-zero here as well. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/cdc_ether.c')
-rw-r--r--drivers/net/usb/cdc_ether.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index b3fe0de40469..9a60e415d76b 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -99,9 +99,7 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
*/
buf = dev->udev->actconfig->extra;
len = dev->udev->actconfig->extralen;
- if (len)
- dev_dbg(&intf->dev,
- "CDC descriptors on config\n");
+ dev_dbg(&intf->dev, "CDC descriptors on config\n");
}
/* Maybe CDC descriptors are after the endpoint? This bug has