usb: musb: omap2430: kill redundant assignments in omap2430_probe()
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 8 Jan 2013 19:13:40 +0000 (22:13 +0300)
committerFelipe Balbi <balbi@ti.com>
Thu, 17 Jan 2013 13:45:43 +0000 (15:45 +0200)
Commit 00a0b1d58af873d842580dcac55f3b156c3a4077 (usb: musb: omap: Add device
tree support for omap musb glue) added assignments of the 'ret' variable to
-ENOMEM on *some* error paths of the calls to devm_kzalloc(), while that
variable was already pre-initialized for to that value, so these assignments
were completely redundant. Kill them, fixing overindented string, while at it.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/omap2430.c

index c293dbe..cd06166 100644 (file)
@@ -532,15 +532,13 @@ static int omap2430_probe(struct platform_device *pdev)
                if (!pdata) {
                        dev_err(&pdev->dev,
                                "failed to allocate musb platfrom data\n");
-                       ret = -ENOMEM;
                        goto err2;
                }
 
                data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
                if (!data) {
                        dev_err(&pdev->dev,
-                                       "failed to allocate musb board data\n");
-                       ret = -ENOMEM;
+                               "failed to allocate musb board data\n");
                        goto err2;
                }