Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 644034c2 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4d9e4088
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -868,9 +868,6 @@ static int tower_probe (struct usb_interface *interface, const struct usb_device


	dbg(2, "%s: enter", __func__);
	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 */
	/* allocate memory for our device state and initialize it */


	dev = kmalloc (sizeof(struct lego_usb_tower), GFP_KERNEL);
	dev = kmalloc (sizeof(struct lego_usb_tower), GFP_KERNEL);