summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMatthias Brugger2012-11-16 18:51:01 +0100
committerTomi Valkeinen2012-11-19 12:12:41 +0100
commit4ee9a5377b7888fae8aa6064e4cc8d0fd32871a2 (patch)
tree89346d8ea423b7b6b8ac26d614f51585059dcbf6 /drivers
parentMerge branch '3.8/vram-conversion' of git://gitorious.org/linux-omap-dss2/linux (diff)
downloadkernel-qcow2-linux-4ee9a5377b7888fae8aa6064e4cc8d0fd32871a2.tar.gz
kernel-qcow2-linux-4ee9a5377b7888fae8aa6064e4cc8d0fd32871a2.tar.xz
kernel-qcow2-linux-4ee9a5377b7888fae8aa6064e4cc8d0fd32871a2.zip
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')
-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)
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;