浏览代码

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>
Saurabh Karajgaonkar 10 年之前
父节点
当前提交
aa31a0909c
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      drivers/usb/host/oxu210hp-hcd.c

+ 1 - 6
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)
 static int oxu_reset(struct usb_hcd *hcd)
 {
 {
 	struct oxu_hcd *oxu = hcd_to_oxu(hcd);
 	struct oxu_hcd *oxu = hcd_to_oxu(hcd);
-	int ret;
 
 
 	spin_lock_init(&oxu->mem_lock);
 	spin_lock_init(&oxu->mem_lock);
 	INIT_LIST_HEAD(&oxu->urb_list);
 	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->hcs_params = readl(&oxu->caps->hcs_params);
 	oxu->sbrn = 0x20;
 	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)
 static int oxu_run(struct usb_hcd *hcd)