aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-11-22 09:56:47 -0500
committerFelipe Balbi <balbi@ti.com>2014-11-24 09:38:27 -0500
commit6cd6159d4b1695427105d4b8b2e355e1d0509ff4 (patch)
tree1e5c75c15d332b58659f6d4c93c29219d7a3de65
parentef24d749f2c8713d333b3e3c4b1d84fbc25bc133 (diff)
usb: dwc3: return error code from the most recent call
Copy-paste error from the previous block of error handling code. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e,e1; @@ if (IS_ERR(e)) { ... ( ret = PTR_ERR(e); | * ret = PTR_ERR(e1); ) ... return ret; } // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/dwc3/dwc3-st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c
index c7602b5362ad..4a1a543deeda 100644
--- a/drivers/usb/dwc3/dwc3-st.c
+++ b/drivers/usb/dwc3/dwc3-st.c
@@ -243,7 +243,7 @@ static int st_dwc3_probe(struct platform_device *pdev)
243 dwc3_data->rstc_rst = devm_reset_control_get(dev, "softreset"); 243 dwc3_data->rstc_rst = devm_reset_control_get(dev, "softreset");
244 if (IS_ERR(dwc3_data->rstc_rst)) { 244 if (IS_ERR(dwc3_data->rstc_rst)) {
245 dev_err(&pdev->dev, "could not get reset controller\n"); 245 dev_err(&pdev->dev, "could not get reset controller\n");
246 ret = PTR_ERR(dwc3_data->rstc_pwrdn); 246 ret = PTR_ERR(dwc3_data->rstc_rst);
247 goto undo_powerdown; 247 goto undo_powerdown;
248 } 248 }
249 249