Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1949196ybv; Fri, 14 Feb 2020 08:43:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwiV+o7oNppTZnnGuwtX12ecGDxHSVZcZTorNDgO/v3Fx1i1oAqHb4iFm5DEy1mgAqA9ttr X-Received: by 2002:a9d:784b:: with SMTP id c11mr2869368otm.246.1581698625660; Fri, 14 Feb 2020 08:43:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698625; cv=none; d=google.com; s=arc-20160816; b=RaS/pgxxL+j7MeuHBH+Ru32VMm+iCmFAlFHzAg0q6UGasZTzpSTC87cWGw2yQ2qIdc 1XQdcBPSSxRSxnQ/VWlOE98QBnimtG5ahbDhknOVA7OdTo4kW1yfES35+CIE/mKoWJHW EjupfosmTHx7ptWK+2SjamxWTeOv7rnejZZcz+8cBOTdQGzMy1fXh7FSBitLKdxi26ds 7/FM8bFylTNdok7Tqqem2M2BjBE5cDTcDCQckTvWl6t3iNFnUDyxbPRkPXmfLv0RmIAj 2UcCl5J/EE5EuSRQ8CLmswnFkHmCeToPuskV5ViTXvxQQvhe8RpvDyEzyPYyJkLsB/SC Dz8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vnOJpL1IAhUsbXGh2gVjs55O1cE5EfugjM0D9Y56aRg=; b=u/5Mp/Ao0LViEfzLQBKcenRgTnqS/gE/96mO1M69C5A4V/qh17UKO6pwbHTKev57n8 pjB67sNT83WxQ66KRn3c/vyaeZuMlQQtCWNBChgDx2pVsZddNWwn9aMUMg1/7iH65nqL D/dJNwN4dvAMxpdkGDyVjZ+0nbGxEwhWDSn9ydlyy50Fm3Q9ph5RjVyDk4iHysRQlGGP DfutMBWYyGDTlbUlDlJ5Zgqrr3kktRV1yUILjDubH+gOut9+aFlzzhYGZ+Hmj1LRzhYu Bg/eoi4FNgARLOpXTmU9F3Dlk9qQ3vFVfX2U8jyqN1nMsLcbq4K3tolzG+coV/CwyD1v wekw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MwQ8NQV7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si3245521otq.21.2020.02.14.08.43.34; Fri, 14 Feb 2020 08:43:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MwQ8NQV7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405428AbgBNQm7 (ORCPT + 99 others); Fri, 14 Feb 2020 11:42:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:57418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405396AbgBNQWN (ORCPT ); Fri, 14 Feb 2020 11:22:13 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FF53246E9; Fri, 14 Feb 2020 16:22:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697333; bh=+jis4DE3IIgqFeCmKzwXpOLiKwa1li8NWsKZs+Gltg4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MwQ8NQV7LjTlVhWAYP1AnExvpAjSClIIKCpKmLzQzKPktLGWlSiWJojNFEHI8a5C8 s8vaWQAblzvH87X/bmMR/NjSodZq7HjgxcCCwDASU5N55qIymgAzYr4Seo8IsdFbsj 8mj3RdE6dvRGlvO/iovwykSVRnznUBBGc1DV/ptc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: zhengbin , Hulk Robot , Daniel Vetter , Sasha Levin , dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.9 040/141] drm/gma500: remove set but not used variable 'is_hdmi','is_crt' Date: Fri, 14 Feb 2020 11:19:40 -0500 Message-Id: <20200214162122.19794-40-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: zhengbin [ Upstream commit 834c43a97f341d319aa7b74099bbce2c4e75bc72 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/cdv_intel_display.c: In function cdv_intel_crtc_mode_set: drivers/gpu/drm/gma500/cdv_intel_display.c:594:7: warning: variable is_hdmi set but not used [-Wunused-but-set-variable] drivers/gpu/drm/gma500/cdv_intel_display.c: In function cdv_intel_crtc_mode_set: drivers/gpu/drm/gma500/cdv_intel_display.c:593:7: warning: variable is_crt set but not used [-Wunused-but-set-variable] They are not used since commit acd7ef927e06 ("gma500: Update the Cedarview clock handling") Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/1573828027-122323-4-git-send-email-zhengbin13@huawei.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/gma500/cdv_intel_display.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/gma500/cdv_intel_display.c b/drivers/gpu/drm/gma500/cdv_intel_display.c index 17db4b4749d5a..9854fdd7c51cf 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_display.c +++ b/drivers/gpu/drm/gma500/cdv_intel_display.c @@ -590,8 +590,8 @@ static int cdv_intel_crtc_mode_set(struct drm_crtc *crtc, struct gma_clock_t clock; u32 dpll = 0, dspcntr, pipeconf; bool ok; - bool is_crt = false, is_lvds = false, is_tv = false; - bool is_hdmi = false, is_dp = false; + bool is_lvds = false, is_tv = false; + bool is_dp = false; struct drm_mode_config *mode_config = &dev->mode_config; struct drm_connector *connector; const struct gma_limit_t *limit; @@ -615,10 +615,7 @@ static int cdv_intel_crtc_mode_set(struct drm_crtc *crtc, is_tv = true; break; case INTEL_OUTPUT_ANALOG: - is_crt = true; - break; case INTEL_OUTPUT_HDMI: - is_hdmi = true; break; case INTEL_OUTPUT_DISPLAYPORT: is_dp = true; -- 2.20.1