OMAPFB: Delete if statement evaluating a constant.
authorMatthias Brugger <matthias.bgg@googlemail.com>
Fri, 16 Nov 2012 17:51:01 +0000 (18:51 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 19 Nov 2012 11:12:41 +0000 (13:12 +0200)
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>
drivers/video/omap2/omapfb/omapfb-main.c

index 408a3cc..1a69d7c 100644 (file)
@@ -2445,7 +2445,6 @@ static int __init omapfb_probe(struct platform_device *pdev)
        fbdev->dev = &pdev->dev;
        platform_set_drvdata(pdev, fbdev);
 
-       r = 0;
        fbdev->num_displays = 0;
        dssdev = NULL;
        for_each_dss_dev(dssdev) {
@@ -2468,9 +2467,6 @@ static int __init omapfb_probe(struct platform_device *pdev)
                        d->update_mode = OMAPFB_AUTO_UPDATE;
        }
 
-       if (r)
-               goto cleanup;
-
        if (fbdev->num_displays == 0) {
                dev_err(&pdev->dev, "no displays\n");
                r = -EINVAL;