Skip to contentSkip to conversation

USB: legousbtower.c: remove a bogus NULL check

PATCH New Dan Carpenter 1 participant 1 message Jul 20, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

drivers/usb/misc/legousbtower.c +0 -3
index a2702cb..8089479 100644
@@ -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);