diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-07-20 09:10:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 00:17:39 +0200 |
commit | 644034c21209feaddd6d584669ffb40561525d18 (patch) | |
tree | 5f8048b48340ce831a6651c12d19ce36682cf56e /drivers/usb/misc/legousbtower.c | |
parent | usb: add decriptor of persist fail for some morph usb devices (diff) | |
download | linux-644034c21209feaddd6d584669ffb40561525d18.tar.xz 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/misc/legousbtower.c')
-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 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); |