From: Dan Carpenter Date: Fri, 20 Jul 2012 07:10:19 +0000 (+0300) Subject: USB: legousbtower.c: remove a bogus NULL check X-Git-Tag: next-20120816~17^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=644034c21209feaddd6d584669ffb40561525d18;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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);