]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
USB: Remove test for NULL that'll never happen in usb_disconnect()
authorJesper Juhl <jj@chaosbits.net>
Mon, 11 Jul 2011 20:59:36 +0000 (22:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Aug 2011 22:21:15 +0000 (15:21 -0700)
In drivers/usb/core/hub.c::usb_disconnect(), 'udev' will never be
NULL, so remove the test and printing of debug message.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c

index a428aa080a365e219857cd0b465aab5e67a4887b..99fff6be36419edf1d54914c33c1aea1529c05b4 100644 (file)
@@ -1636,11 +1636,6 @@ void usb_disconnect(struct usb_device **pdev)
        int                     i;
        struct usb_hcd          *hcd = bus_to_hcd(udev->bus);
 
-       if (!udev) {
-               pr_debug ("%s nodev\n", __func__);
-               return;
-       }
-
        /* mark the device as inactive, so any further urb submissions for
         * this device (and any of its children) will fail immediately.
         * this quiesces everything except pending urbs.