USB: cdc_ether: remove unneeded check
authorDan Carpenter <error27@gmail.com>
Sat, 25 Dec 2010 12:23:42 +0000 (12:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Dec 2010 19:11:38 +0000 (11:11 -0800)
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>
drivers/net/usb/cdc_ether.c

index b3fe0de4046970dc27fbc31b478b9cce42cf9c63..9a60e415d76bedca43ef414abc55b7cd1e289478 100644 (file)
@@ -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