]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/gma500/mdfld_dsi: remove bogus if check
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Wed, 6 Apr 2016 13:41:09 +0000 (14:41 +0100)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Fri, 8 Apr 2016 11:42:31 +0000 (13:42 +0200)
Both cases produce the same result. Kill the junk code.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
drivers/gpu/drm/gma500/mdfld_dsi_dpi.c

index 7cd87a0c2385c5469ada4778a2cd9e09041b5e95..a05c020602bda439b03fabdae42781d3dc627385 100644 (file)
@@ -979,11 +979,7 @@ struct mdfld_dsi_encoder *mdfld_dsi_dpi_init(struct drm_device *dev,
                return NULL;
        }
 
-       if (dsi_connector->pipe)
-               dpi_output->panel_on = 0;
-       else
-               dpi_output->panel_on = 0;
-
+       dpi_output->panel_on = 0;
        dpi_output->dev = dev;
        if (mdfld_get_panel_type(dev, pipe) != TC35876X)
                dpi_output->p_funcs = p_funcs;