aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/omapfb
diff options
context:
space:
mode:
authorMatthias Brugger <matthias.bgg@googlemail.com>2012-11-16 12:51:01 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-11-19 06:12:41 -0500
commit4ee9a5377b7888fae8aa6064e4cc8d0fd32871a2 (patch)
tree89346d8ea423b7b6b8ac26d614f51585059dcbf6 /drivers/video/omap2/omapfb
parentdcca5cf07bcd355e4e1bd51609efe7b7d5d0a7b8 (diff)
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: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/omapfb')
-rw-r--r--drivers/video/omap2/omapfb/omapfb-main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 408a3cce47ad..1a69d7ca92e5 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -2445,7 +2445,6 @@ static int __init omapfb_probe(struct platform_device *pdev)
2445 fbdev->dev = &pdev->dev; 2445 fbdev->dev = &pdev->dev;
2446 platform_set_drvdata(pdev, fbdev); 2446 platform_set_drvdata(pdev, fbdev);
2447 2447
2448 r = 0;
2449 fbdev->num_displays = 0; 2448 fbdev->num_displays = 0;
2450 dssdev = NULL; 2449 dssdev = NULL;
2451 for_each_dss_dev(dssdev) { 2450 for_each_dss_dev(dssdev) {
@@ -2468,9 +2467,6 @@ static int __init omapfb_probe(struct platform_device *pdev)
2468 d->update_mode = OMAPFB_AUTO_UPDATE; 2467 d->update_mode = OMAPFB_AUTO_UPDATE;
2469 } 2468 }
2470 2469
2471 if (r)
2472 goto cleanup;
2473
2474 if (fbdev->num_displays == 0) { 2470 if (fbdev->num_displays == 0) {
2475 dev_err(&pdev->dev, "no displays\n"); 2471 dev_err(&pdev->dev, "no displays\n");
2476 r = -EINVAL; 2472 r = -EINVAL;