From: Dan Carpenter Date: Sat, 25 Dec 2010 12:23:42 +0000 (+0000) Subject: USB: cdc_ether: remove unneeded check X-Git-Tag: MMI-PSA29.97-13-9~21446^2~71 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5260f02e7903bb10e45b1bf3500eab6425edf5c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Oliver Neukum Signed-off-by: David S. Miller --- 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