Commit 8df4ce75 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Felipe Balbi

usb: musb: omap2430: kill redundant assignments in omap2430_probe()

Commit 00a0b1d5 (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: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 99d17cfa
...@@ -532,7 +532,6 @@ static int omap2430_probe(struct platform_device *pdev) ...@@ -532,7 +532,6 @@ static int omap2430_probe(struct platform_device *pdev)
if (!pdata) { if (!pdata) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"failed to allocate musb platfrom data\n"); "failed to allocate musb platfrom data\n");
ret = -ENOMEM;
goto err2; goto err2;
} }
...@@ -540,7 +539,6 @@ static int omap2430_probe(struct platform_device *pdev) ...@@ -540,7 +539,6 @@ static int omap2430_probe(struct platform_device *pdev)
if (!data) { if (!data) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"failed to allocate musb board data\n"); "failed to allocate musb board data\n");
ret = -ENOMEM;
goto err2; goto err2;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment