mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
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>
This commit is contained in:
parent
39a2ac2738
commit
368504c00a
@ -632,16 +632,12 @@ static int usbhs_probe(struct platform_device *pdev)
|
|||||||
/*
|
/*
|
||||||
* manual call notify_hotplug for cold plug
|
* manual call notify_hotplug for cold plug
|
||||||
*/
|
*/
|
||||||
ret = usbhsc_drvcllbck_notify_hotplug(pdev);
|
usbhsc_drvcllbck_notify_hotplug(pdev);
|
||||||
if (ret < 0)
|
|
||||||
goto probe_end_call_remove;
|
|
||||||
|
|
||||||
dev_info(&pdev->dev, "probed\n");
|
dev_info(&pdev->dev, "probed\n");
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
probe_end_call_remove:
|
|
||||||
usbhs_platform_call(priv, hardware_exit, pdev);
|
|
||||||
probe_end_mod_exit:
|
probe_end_mod_exit:
|
||||||
usbhs_mod_remove(priv);
|
usbhs_mod_remove(priv);
|
||||||
probe_end_fifo_exit:
|
probe_end_fifo_exit:
|
||||||
|
Loading…
Reference in New Issue
Block a user