diff options
author | Saurabh Karajgaonkar <skarajga@visteon.com> | 2015-08-04 14:04:09 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-05 12:37:21 -0700 |
commit | f1cda54cfb71720058cd65b2f1be7f2a86889935 (patch) | |
tree | bd838dede9e87999ead4262deb8909edbe25940f /drivers/usb/host | |
parent | 8602b08ab641a6004efa553c8089180c40bc1f72 (diff) | |
download | talos-op-linux-f1cda54cfb71720058cd65b2f1be7f2a86889935.tar.gz talos-op-linux-f1cda54cfb71720058cd65b2f1be7f2a86889935.zip |
usb: host: xhci: Simplify return statement
Replace redundant variable use in return statement.
Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index c3ac0a2aac37..91fd32835312 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -4678,7 +4678,6 @@ int xhci_disable_usb3_lpm_timeout(struct usb_hcd *hcd, { struct xhci_hcd *xhci; u16 mel; - int ret; xhci = hcd_to_xhci(hcd); if (!xhci || !(xhci->quirks & XHCI_LPM_SUPPORT) || @@ -4686,10 +4685,7 @@ int xhci_disable_usb3_lpm_timeout(struct usb_hcd *hcd, return 0; mel = calculate_max_exit_latency(udev, state, USB3_LPM_DISABLED); - ret = xhci_change_max_exit_latency(xhci, udev, mel); - if (ret) - return ret; - return 0; + return xhci_change_max_exit_latency(xhci, udev, mel); } #else /* CONFIG_PM */ |