summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-07-20 10:10:19 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-15 15:17:39 -0700
commit644034c21209feaddd6d584669ffb40561525d18 (patch)
tree5f8048b48340ce831a6651c12d19ce36682cf56e /drivers/usb
parent4d9e4088e074e674bc7a9fef4381e0910323c649 (diff)
downloadtalos-obmc-linux-644034c21209feaddd6d584669ffb40561525d18.tar.gz
talos-obmc-linux-644034c21209feaddd6d584669ffb40561525d18.zip
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')
-rw-r--r--drivers/usb/misc/legousbtower.c3
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
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);
OpenPOWER on IntegriCloud