]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: xhci: remove 'retval' from xhci_pci_resume()
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Thu, 5 Sep 2024 14:32:57 +0000 (17:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2024 14:39:22 +0000 (16:39 +0200)
Remove unnecessary local 'retval' argument.

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240905143300.1959279-10-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c

index d6196c08ea873143007bc9b9a1e26c9314ea00d8..526739af2070a574cdc20f6a3edeadcfd180269b 100644 (file)
@@ -786,7 +786,6 @@ static int xhci_pci_resume(struct usb_hcd *hcd, pm_message_t msg)
 {
        struct xhci_hcd         *xhci = hcd_to_xhci(hcd);
        struct pci_dev          *pdev = to_pci_dev(hcd->self.controller);
-       int                     retval = 0;
 
        reset_control_reset(xhci->reset);
 
@@ -817,8 +816,7 @@ static int xhci_pci_resume(struct usb_hcd *hcd, pm_message_t msg)
        if (xhci->quirks & XHCI_PME_STUCK_QUIRK)
                xhci_pme_quirk(hcd);
 
-       retval = xhci_resume(xhci, msg);
-       return retval;
+       return xhci_resume(xhci, msg);
 }
 
 static int xhci_pci_poweroff_late(struct usb_hcd *hcd, bool do_wakeup)