Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751598AbcDFNlW (ORCPT ); Wed, 6 Apr 2016 09:41:22 -0400 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:56862 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750719AbcDFNlV (ORCPT ); Wed, 6 Apr 2016 09:41:21 -0400 Subject: [PATCH] mdfld_dsi: remove bogus if check From: Alan To: dri-devel@lists.freedesktop.org, patrik.r.jakobsson@gmail.com, linux-kernel@vger.kernel.org Date: Wed, 06 Apr 2016 14:41:09 +0100 Message-ID: <20160406134102.9429.70772.stgit@localhost.localdomain> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 810 Lines: 26 From: Alan Both cases produce the same result. Kill the junk code. Signed-off-by: Alan Cox --- drivers/gpu/drm/gma500/mdfld_dsi_dpi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c b/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c index 7cd87a0..a05c0206 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c @@ -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;