]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: renesas_usbhs: kill dead code in usbhs_probe()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Fri, 12 Dec 2014 19:53:18 +0000 (22:53 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 18:13:26 +0000 (12:13 -0600)
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>
drivers/usb/renesas_usbhs/common.c

index 371478704899135bbeddb6c22f6dd71f2ebfeb03..a706fc4fc13bb6ee299b02f85a2e0e874cb8cfb7 100644 (file)
@@ -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: