Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1951239pxt; Sun, 8 Aug 2021 06:49:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhEQK4DqO0kA0+qG9vb/fYTMLRPM2N3AsELxCAtEXPE4us1nK/1tYPeLD4Lroafd0lizTq X-Received: by 2002:a17:906:e54:: with SMTP id q20mr18679708eji.86.1628430589136; Sun, 08 Aug 2021 06:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628430589; cv=none; d=google.com; s=arc-20160816; b=Ju1WFXEGGeOfSA+PjdAtBu8OeDjCDZxLdYX5WVz65Dhb+j9zH9yAyTnWELKWQiiRxN tAkOuVj6GAf+Db45+IQFeuYDI+yXpdDBiSSyeECAyqiMCC1ZsaP9TP62LLeAsMya0maB 1V4Md2dCFJNJefdDU0rgrttMO5JCoyYuP9uDIbgeZcRqmoHC4EpTmLjrwvB2sZMYzUkx 6Uq3fROyhhQqSieAHN6t3nI1CxClFnGDFsGgytjNFUxrxi8u8mc/olISIRQ/FzPTOOH6 /xrnvliOpxDflEyoiPy62HH0+QzS9YLZ9SIHCwJp5cxuro2Gk6pu7cs3SLIWUVyiecSo ipZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ntd9ZHcey8CC6TI+NoxLWPRpmrhfT0HKJ3KHnmEHJRk=; b=ZiGTdDsWh+McQxXt38FHxwnaKhb4g0AN5gn7ze9AvCt3bB+A4qH1raR8k1KoAyUn4b SElSTFVRTHAO4iKOgEpHHUVaLG9Sm7uySf+b+UvmUVTk11d6nk42mFLjrc1iKYK0xh62 VW5L+CZDxnF8U60St9Fc4Llp14DCbnKHoI4Wf3id+Kb5KFnt3oNcVYFph3SmTigBt5dJ 6gEEjRzzBO4tV8/XPRPFKbECPHg+h+ENA+Tdbn/3+LH7P8DUuEEfxb0LWTwkZZ5ctdJJ MJszjdBlSIFsiVKBPtukM3ifNtx7i/L+SMPbUKrx2I6ec77NqQzgOdbnpkfjpRHd39oF sm4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si14077418edb.446.2021.08.08.06.49.25; Sun, 08 Aug 2021 06:49:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231618AbhHHNqQ (ORCPT + 99 others); Sun, 8 Aug 2021 09:46:16 -0400 Received: from aposti.net ([89.234.176.197]:55782 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231615AbhHHNqP (ORCPT ); Sun, 8 Aug 2021 09:46:15 -0400 From: Paul Cercueil To: David Airlie , Daniel Vetter Cc: "H . Nikolaus Schaller" , Paul Boddie , list@opendingux.net, Sam Ravnborg , linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH 1/8] drm/ingenic: Remove dead code Date: Sun, 8 Aug 2021 15:45:19 +0200 Message-Id: <20210808134526.119198-2-paul@crapouillou.net> In-Reply-To: <20210808134526.119198-1-paul@crapouillou.net> References: <20210808134526.119198-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The priv->ipu_plane would get a different value further down the code, without the first assigned value being read first; so the first assignation can be dropped. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c index d261f7a03b18..e42eb43d8020 100644 --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c @@ -984,9 +984,6 @@ static int ingenic_drm_bind(struct device *dev, bool has_components) priv->dma_hwdescs->hwdesc_pal.cmd = JZ_LCD_CMD_ENABLE_PAL | (sizeof(priv->dma_hwdescs->palette) / 4); - if (soc_info->has_osd) - priv->ipu_plane = drm_plane_from_index(drm, 0); - primary = priv->soc_info->has_osd ? &priv->f1 : &priv->f0; drm_plane_helper_add(primary, &ingenic_drm_plane_helper_funcs); -- 2.30.2