summaryrefslogtreecommitdiff
path: root/drivers/usb/host/oxu210hp-hcd.c
diff options
context:
space:
mode:
authorSaurabh Karajgaonkar <skarajga@visteon.com>2015-08-04 17:03:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-05 22:37:21 +0300
commitaa31a0909cc44bf2f75c14e800caff2d06ff725e (patch)
tree4472c976cdeaebeb203c98535c092fe19c9f11b4 /drivers/usb/host/oxu210hp-hcd.c
parent16f9c3fd25b957f4df0fd5d9bf70249495c1a421 (diff)
downloadlinux-aa31a0909cc44bf2f75c14e800caff2d06ff725e.tar.xz
usb: host: oxu210hp-hcd: 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/oxu210hp-hcd.c')
-rw-r--r--drivers/usb/host/oxu210hp-hcd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c
index 6352f54e65a1..fe3bd1cb8b6b 100644
--- a/drivers/usb/host/oxu210hp-hcd.c
+++ b/drivers/usb/host/oxu210hp-hcd.c
@@ -2670,7 +2670,6 @@ static int oxu_hcd_init(struct usb_hcd *hcd)
static int oxu_reset(struct usb_hcd *hcd)
{
struct oxu_hcd *oxu = hcd_to_oxu(hcd);
- int ret;
spin_lock_init(&oxu->mem_lock);
INIT_LIST_HEAD(&oxu->urb_list);
@@ -2696,11 +2695,7 @@ static int oxu_reset(struct usb_hcd *hcd)
oxu->hcs_params = readl(&oxu->caps->hcs_params);
oxu->sbrn = 0x20;
- ret = oxu_hcd_init(hcd);
- if (ret)
- return ret;
-
- return 0;
+ return oxu_hcd_init(hcd);
}
static int oxu_run(struct usb_hcd *hcd)