Message ID | 20210113145009.1272040-20-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp599712jap; Wed, 13 Jan 2021 06:52:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDUkcIfB3rwikKRBcU22YluA0bPxYlBE1XbEhlorMVWkfJupvLIFfmD7++XHwcdzEHWOxu X-Received: by 2002:a17:907:d8d:: with SMTP id go13mr1805942ejc.520.1610549563076; Wed, 13 Jan 2021 06:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549563; cv=none; d=google.com; s=arc-20160816; b=c3eM1CDHiI/MQ6mlkDJGubo2E0piQfQ6gBPGoQU3o3TzTVEefqZcQG3mFD+pFYPz/A QWHEzqT0Sd/EY5mm9+tDnYTMYrtMeKKDnLXNqUJWHUurq9Zv/HtlwKfxPGmCQOhiwuTl TphycOoByTP3r31VDQP1b2ZomELUqska5o8ezM01vgQ3ZaYL3QSksF7JXXAMvNBDjJq3 CNEWi2GlUk9UTJlIUKgprvDkL0pH4wrd45PzfRwMm7xkL34eH/itDOPYnwOsTVCt/RLs MclvuzflRsfDC0ZCKesrxbqJCm3xYtwzOT9VNSZDcZ9+80Ad9VTvvUyBY8lZdVBbgZvs +ROQ== 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 :dkim-signature; bh=ZRcivOWCu86KtmbW2EK6Np9SsvS7JZY4Xqa/qkwVtkE=; b=VTfG4kwBzo9NZtE8JYjFXztO5whViNulFRbo7uOtZqx4MkAvZd2RCK7IiNA+BDCHS1 yTJOFfV05gf4H3vDEFj7fCJTGlEYJQEi5DgBZ+gapdVucLS7Hp5GKXUKJR1OEWZDKMez ++FePnLWb4u2L9Qqw7enBfC6aaSKz/7SzRS1QfahRy3bNM/85sO/m9+P9Z/BUCfn0Ha8 qb2iP+lJCwN/kbzXrCrER80xfZdqYYGsAXi8k1w0v+AjAZlYoS+rsIpCqyL3LFXPlFel yq/gSROPDjwEGdCPR/Olv0od0SPsJej9oqLOz9hDkgDIZufnM5EnKqYddEYvsO+Ylb9K sBiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t1ER4nwN; spf=pass (google.com: domain of linux-fbdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-fbdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si1086582eds.239.2021.01.13.06.52.42 for <patch@linaro.org>; Wed, 13 Jan 2021 06:52:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-fbdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t1ER4nwN; spf=pass (google.com: domain of linux-fbdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727424AbhAMOvy (ORCPT <rfc822;patch@linaro.org>); Wed, 13 Jan 2021 09:51:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727494AbhAMOvx (ORCPT <rfc822;linux-fbdev@vger.kernel.org>); Wed, 13 Jan 2021 09:51:53 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59FACC061342 for <linux-fbdev@vger.kernel.org>; Wed, 13 Jan 2021 06:50:43 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id t30so2435605wrb.0 for <linux-fbdev@vger.kernel.org>; Wed, 13 Jan 2021 06:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZRcivOWCu86KtmbW2EK6Np9SsvS7JZY4Xqa/qkwVtkE=; b=t1ER4nwN/WPM6fNnm/Mdum0Pojlr01P78z/COYqJ1z5HyIHjWoDRfik8SQHtBQqxQK YmiySxijr8E0W29ccNGw29mWFYTILvz8yqxd4Jhjz4xgCEkubT+0KFcPLzD/bqSuhqOv bwbne25dLdz4tncYRuqLl24YT+dNFgIwqI2SBJY9J4cgkiSXbIrT5qKhC9+mgB4yvQc0 udbu5Cayvxz6NRQyXKyHcIRbULqdBiGQkpmclevO2khhsi+G7TZ0owLOrYnOEnlNsCCt PsWXGjmGYEWJlNT1uNBNNRB3QkWWj1iQNibwkHhjoWky2+41zMmhl3Ve1ioMsvWRW5MO 3aKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZRcivOWCu86KtmbW2EK6Np9SsvS7JZY4Xqa/qkwVtkE=; b=SBbbOuTNvBE7pw9yR77hAMlWZy/+Yt3gXP9F9vrM58iNMC+wTk1y9uqRxTZmTShZeY ICSrfAWdzyXm80335xIs+7UDSozgkSkOVS2lsQCJ3hnqyCXfEqiMBejF4qCIq+OKwQY7 z1NrjnxRvZPL/pCvoS7QbNvAqxMDLuClbzKB+pEZ7aryOuaVe82LIB+O9wHRNZW27HCw UtHabtpn1hCwQ2Fi5WIofUK6CX59sf3Ot8DsTGZudghNw8RurzLP5KuQpOmKDAYxs1Hj 5lCWHUi7W4oefloUqd1a/ye8Vi5HRWQc7gTaJMJdbBGT1PGB0U6XBFtmR1hWiKHvw+Nh YmZQ== X-Gm-Message-State: AOAM533flWwt2V1Lj9M5cCyThDBtf1h7GVuJzaPmoMfGkhfLmEN0vO4D 92XNNF342FFyEwrTIfXNcH4NpQ== X-Received: by 2002:a5d:530c:: with SMTP id e12mr3033393wrv.54.1610549442170; Wed, 13 Jan 2021 06:50:42 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:41 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" <gustavoars@kernel.org>, Hannu Mallat <hmallat@cc.hut.fi>, Frodo Looijaard <frodol@dds.nl>, Philip Edelbrock <phil@netroedge.com>, Ralph Metzler <rjkm@thp.uni-koeln.de>, "Mark D. Studebaker" <mdsxyz123@yahoo.com>, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH 19/31] video: fbdev: tdfxfb: Remove unused variable 'tmp' Date: Wed, 13 Jan 2021 14:49:57 +0000 Message-Id: <20210113145009.1272040-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113145009.1272040-1-lee.jones@linaro.org> References: <20210113145009.1272040-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-fbdev.vger.kernel.org> X-Mailing-List: linux-fbdev@vger.kernel.org |
Series |
Rid W=1 warnings from Video
|
expand
|
diff --git a/drivers/video/fbdev/tdfxfb.c b/drivers/video/fbdev/tdfxfb.c index f056d80f6359f..67e37a62b07c3 100644 --- a/drivers/video/fbdev/tdfxfb.c +++ b/drivers/video/fbdev/tdfxfb.c @@ -206,9 +206,7 @@ static inline u8 crt_inb(struct tdfx_par *par, u32 idx) static inline void att_outb(struct tdfx_par *par, u32 idx, u8 val) { - unsigned char tmp; - - tmp = vga_inb(par, IS1_R); + vga_inb(par, IS1_R); vga_outb(par, ATT_IW, idx); vga_outb(par, ATT_IW, val); }
Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/tdfxfb.c: In function ‘att_outb’: drivers/video/fbdev/tdfxfb.c:209:16: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org> Cc: Hannu Mallat <hmallat@cc.hut.fi> Cc: Frodo Looijaard <frodol@dds.nl> Cc: Philip Edelbrock <phil@netroedge.com> Cc: Ralph Metzler <rjkm@thp.uni-koeln.de> Cc: "Mark D. Studebaker" <mdsxyz123@yahoo.com> Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/video/fbdev/tdfxfb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.25.1