Skip to content

Commit dbb2c92

Browse files
Epicuriusgregkh
authored andcommitted
usb: xhci: remove 'retval' from xhci_pci_resume()
Remove unnecessary local 'retval' argument. Signed-off-by: Niklas Neronin <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 77d871a commit dbb2c92

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,6 @@ static int xhci_pci_resume(struct usb_hcd *hcd, pm_message_t msg)
786786
{
787787
struct xhci_hcd *xhci = hcd_to_xhci(hcd);
788788
struct pci_dev *pdev = to_pci_dev(hcd->self.controller);
789-
int retval = 0;
790789

791790
reset_control_reset(xhci->reset);
792791

@@ -817,8 +816,7 @@ static int xhci_pci_resume(struct usb_hcd *hcd, pm_message_t msg)
817816
if (xhci->quirks & XHCI_PME_STUCK_QUIRK)
818817
xhci_pme_quirk(hcd);
819818

820-
retval = xhci_resume(xhci, msg);
821-
return retval;
819+
return xhci_resume(xhci, msg);
822820
}
823821

824822
static int xhci_pci_poweroff_late(struct usb_hcd *hcd, bool do_wakeup)

0 commit comments

Comments
 (0)