diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-07-20 03:10:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-15 18:17:39 -0400 |
commit | 644034c21209feaddd6d584669ffb40561525d18 (patch) | |
tree | 5f8048b48340ce831a6651c12d19ce36682cf56e /drivers/usb/misc | |
parent | 4d9e4088e074e674bc7a9fef4381e0910323c649 (diff) |
USB: legousbtower.c: remove a bogus NULL check
"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>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/legousbtower.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c index a2702cbfe804..80894791c020 100644 --- a/drivers/usb/misc/legousbtower.c +++ b/drivers/usb/misc/legousbtower.c | |||
@@ -868,9 +868,6 @@ static int tower_probe (struct usb_interface *interface, const struct usb_device | |||
868 | 868 | ||
869 | dbg(2, "%s: enter", __func__); | 869 | dbg(2, "%s: enter", __func__); |
870 | 870 | ||
871 | if (udev == NULL) | ||
872 | dev_info(&interface->dev, "udev is NULL.\n"); | ||
873 | |||
874 | /* allocate memory for our device state and initialize it */ | 871 | /* allocate memory for our device state and initialize it */ |
875 | 872 | ||
876 | dev = kmalloc (sizeof(struct lego_usb_tower), GFP_KERNEL); | 873 | dev = kmalloc (sizeof(struct lego_usb_tower), GFP_KERNEL); |