Commit 4ee9a537 authored by Matthias Brugger's avatar Matthias Brugger Committed by Tomi Valkeinen

OMAPFB: Delete if statement evaluating a constant.

Variable r is never set to any value different to zero.
Delete the if statement as it will never executed.
Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent dcca5cf0
...@@ -2445,7 +2445,6 @@ static int __init omapfb_probe(struct platform_device *pdev) ...@@ -2445,7 +2445,6 @@ static int __init omapfb_probe(struct platform_device *pdev)
fbdev->dev = &pdev->dev; fbdev->dev = &pdev->dev;
platform_set_drvdata(pdev, fbdev); platform_set_drvdata(pdev, fbdev);
r = 0;
fbdev->num_displays = 0; fbdev->num_displays = 0;
dssdev = NULL; dssdev = NULL;
for_each_dss_dev(dssdev) { for_each_dss_dev(dssdev) {
...@@ -2468,9 +2467,6 @@ static int __init omapfb_probe(struct platform_device *pdev) ...@@ -2468,9 +2467,6 @@ static int __init omapfb_probe(struct platform_device *pdev)
d->update_mode = OMAPFB_AUTO_UPDATE; d->update_mode = OMAPFB_AUTO_UPDATE;
} }
if (r)
goto cleanup;
if (fbdev->num_displays == 0) { if (fbdev->num_displays == 0) {
dev_err(&pdev->dev, "no displays\n"); dev_err(&pdev->dev, "no displays\n");
r = -EINVAL; r = -EINVAL;
......
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