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>
This commit is contained in:
Dan Carpenter 2012-07-20 10:10:19 +03:00 коммит произвёл Greg Kroah-Hartman
Родитель 4d9e4088e0
Коммит 644034c212
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -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);