Skip to contentSkip to conversation

mdfld_dsi: remove bogus if check

PATCH New Alan 1 participant 1 message Apr 6, 2016

Subsystems (3)
lore
Share & tools
lore

Alan

author
#0 lore raw

PATCH 1/1 mdfld_dsi: remove bogus if check

From: Alan <[email protected]>

Both cases produce the same result. Kill the junk code.

---
 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/gpu/drm/gma500/mdfld_dsi_dpi.c +1 -5
index 7cd87a0..a05c0206 100644
@@ -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;