Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1949435ybv; Fri, 14 Feb 2020 08:44:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxU/hzfXrNuWyD9zodNm2gOjFwpmaXoeKhCxXgVObPfaqGBvxO1fm3s7ycIUn3ik3Bm0VfC X-Received: by 2002:aca:cdd0:: with SMTP id d199mr2502444oig.49.1581698640089; Fri, 14 Feb 2020 08:44:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698640; cv=none; d=google.com; s=arc-20160816; b=yp15TF2A34L81qLpO5YohcOrHG94vF4rvNrU8k/Nsd5eKYmnqcG7gKD8J57nxwoYeQ xtPDUdbEuHyBj/jW782EgxEOznwfgUQ05Qeyu3trD6PMq4AoHfZQNRab9lftr39ezEov fr3o4knQBxdXjyzfUyI/jgEftMaspK9+/fBU9D5oRiqs3z/ywdCqdingkpl6dYmwFZOO wUqKRgTqhnEIOCbbk3rydgzsFUDNcg8UWm6Ej0TNi2KM9lc1FjFGqS0FkhcvnRTkDQ75 /bnsWHeQ8lkud9Bv3p3EMkJGqPIXWMqdCUw3MsorQg1aadcnm2+5ZWEdc0qNo2vDXH+P Sq0g== 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=ahMY9t90sMUSy8OmzSLb/0otWrL40zSwXlNumVcgxls=; b=rgL4S1cBtXDLfnUcBdwuzmNCTBPniFb5ktCyXFszXNmlMxyMdJ1Fs6NXaHxYx0DjQG jOjJUeoYSN3hArKvwvVTHB86KPc6oAE+puRuaBIRlz3TOiNaF7vje4nkhqknd5+Su9T8 +yPjC5+AlrGiYJFyTw1wY438FzEilTljyiph/g8L27auGzT7AAg1XqhQAnSwzgZQLp2E qUQfa0a8TiXojK+L642aq0eZ6DFoUTKfvJa+LfOFobDA3zOyDyLFNk3CfNXQKdyo3Cq4 IQm8rNiWxf2/cCka5jNg+uo+ngw/2DdBVrkSjYHWg13ZgjmxZOVEEF2Pzt4qL1LuT5t2 5CEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WXfdZA0n; 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 a12si3041630oid.189.2020.02.14.08.43.48; Fri, 14 Feb 2020 08:44:00 -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=WXfdZA0n; 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 S2406054AbgBNQnJ (ORCPT + 99 others); Fri, 14 Feb 2020 11:43:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:57308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393175AbgBNQWL (ORCPT ); Fri, 14 Feb 2020 11:22:11 -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 DFB78246E3; Fri, 14 Feb 2020 16:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697330; bh=97idC7HR8p/LOff1a/Sz0B0Sg2Vysa5wF7lpSwiKO1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WXfdZA0nxAz7ovJ1nscOZgKkWS9SYkUQRdmH+2doNg1llMma7bCc6Mtau4Jf/Nin9 xO3dFRRD5zOebq+7uc+Hg1Ad4YSDzYsJq5p9CZy2bvna1rQb1u6wmd67Xoun5U2zVx sHE3Imve+ahkXgsIUjIvlhSj27PhR/TyeQ7fkTHI= 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 038/141] drm/gma500: remove set but not used variable 'htotal' Date: Fri, 14 Feb 2020 11:19:38 -0500 Message-Id: <20200214162122.19794-38-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 dfa703b6f91818fa9f652c00e3589c104c518930 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/oaktrail_hdmi.c: In function htotal_calculate: drivers/gpu/drm/gma500/oaktrail_hdmi.c:160:6: warning: variable htotal set but not used [-Wunused-but-set-variable] It is introduced by commit 39ec748f7174 ("gma600: Enable HDMI support"), but never used, so remove it. Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/1573828027-122323-2-git-send-email-zhengbin13@huawei.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/gma500/oaktrail_hdmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/gma500/oaktrail_hdmi.c b/drivers/gpu/drm/gma500/oaktrail_hdmi.c index 8b2eb32ee988b..6b403c3586fa0 100644 --- a/drivers/gpu/drm/gma500/oaktrail_hdmi.c +++ b/drivers/gpu/drm/gma500/oaktrail_hdmi.c @@ -157,9 +157,7 @@ static void oaktrail_hdmi_audio_disable(struct drm_device *dev) static unsigned int htotal_calculate(struct drm_display_mode *mode) { - u32 htotal, new_crtc_htotal; - - htotal = (mode->crtc_hdisplay - 1) | ((mode->crtc_htotal - 1) << 16); + u32 new_crtc_htotal; /* * 1024 x 768 new_crtc_htotal = 0x1024; -- 2.20.1