USB: legousbtower.c: remove a bogus NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Jul 2012 07:10:19 +0000 (10:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2012 22:17:39 +0000 (15:17 -0700)
"udev" can't be NULL here.  The debugging printk() makes static checkers
complain when we dereference it later in the function inside the call to
usb_rcvctrlpipe().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/legousbtower.c

index a2702cbfe804c9629005184f17c78ca16918d247..80894791c02003fb8ee628e8ed722411bb174ee9 100644 (file)
@@ -868,9 +868,6 @@ static int tower_probe (struct usb_interface *interface, const struct usb_device
 
        dbg(2, "%s: enter", __func__);
 
-       if (udev == NULL)
-               dev_info(&interface->dev, "udev is NULL.\n");
-
        /* allocate memory for our device state and initialize it */
 
        dev = kmalloc (sizeof(struct lego_usb_tower), GFP_KERNEL);