summaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2014-12-12 22:53:18 +0300
committerFelipe Balbi <balbi@ti.com>2015-01-12 12:13:26 -0600
commit368504c00a2dfce637a55fcbf0cc0339f9ff5ca3 (patch)
tree8eff6b35e5d396c59a7995a3d9bebc29a8cf9092 /drivers/usb/renesas_usbhs
parent39a2ac2738658fd3e56987fb8b43b604298e9ad2 (diff)
downloadblackbird-op-linux-368504c00a2dfce637a55fcbf0cc0339f9ff5ca3.tar.gz
blackbird-op-linux-368504c00a2dfce637a55fcbf0cc0339f9ff5ca3.zip
usb: renesas_usbhs: kill dead code in usbhs_probe()
usbhsc_drvcllbck_notify_hotplug() always returns 0, so it's rather pointless to store and check its result for being < 0. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r--drivers/usb/renesas_usbhs/common.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c
index 371478704899..a706fc4fc13b 100644
--- a/drivers/usb/renesas_usbhs/common.c
+++ b/drivers/usb/renesas_usbhs/common.c
@@ -632,16 +632,12 @@ static int usbhs_probe(struct platform_device *pdev)
/*
* manual call notify_hotplug for cold plug
*/
- ret = usbhsc_drvcllbck_notify_hotplug(pdev);
- if (ret < 0)
- goto probe_end_call_remove;
+ usbhsc_drvcllbck_notify_hotplug(pdev);
dev_info(&pdev->dev, "probed\n");
return ret;
-probe_end_call_remove:
- usbhs_platform_call(priv, hardware_exit, pdev);
probe_end_mod_exit:
usbhs_mod_remove(priv);
probe_end_fifo_exit:
OpenPOWER on IntegriCloud