]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
usb: xhci: remove unnecessary return in xhci_pci_setup()
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 23 Jan 2017 12:20:03 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 09:57:35 +0000 (10:57 +0100)
Remove the unnecessary return line in xhci_pci_setup().

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c

index 954abfd5014d281d537e11353cb6093b9b7a0bdd..fc99f51d12e183603cd692592b6d77351131a1da 100644 (file)
@@ -242,11 +242,7 @@ static int xhci_pci_setup(struct usb_hcd *hcd)
        xhci_dbg(xhci, "Got SBRN %u\n", (unsigned int) xhci->sbrn);
 
        /* Find any debug ports */
-       retval = xhci_pci_reinit(xhci, pdev);
-       if (!retval)
-               return retval;
-
-       return retval;
+       return xhci_pci_reinit(xhci, pdev);
 }
 
 /*