From patchwork Wed Jan 13 14:49:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362122 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp598079jap; Wed, 13 Jan 2021 06:50:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqhL2tceV6xm79+YDg6BARp42fvTe9knKYHhtpOq+8T6vldiWAYT4TVX2XRlpH9GCWDpS6 X-Received: by 2002:a17:90a:a44:: with SMTP id o62mr2838525pjo.209.1610549443235; Wed, 13 Jan 2021 06:50:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549443; cv=none; d=google.com; s=arc-20160816; b=kEFC1FHS5mUlPANNc8771Rz7uYV6xjrXsQPQRvbz30PCR0F4qZmEzeUeITfe2/eg8H ee3secjEU8jDlgigy3ZvADSA0NmGcKzuN4elHm5tYu9N7ioaY9QlN1PJCvYP+I4xMdpe 3H5LZLgep5DBZcdIYRj/7rnSZtlb6qrMHosQoSEWra0Nt6gZBwxxVqHE307Wy5LAXZit qJ2csKt0x3XFGFeYK5JyFBMNuEJGLV7jRPvqLdLyoe4fb7rD6jz09p0n4gT/mUN+6O+h S/U4McZC4nMY4y3Jcb2w7xe/we/MfMgw7CXlFAg2c5PdjD7CbUFc3FivVIZ25x3L3WZa LpdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=juO5k1R/qklidPlekz4+c5KqtLfSSKDtXeBPGwtpCD4=; b=D3MShSTERtSrCEAi9lNeRZlyNdeRM+/eiVj/lyYzwhKCMtByR/+XGnwMFpuQ9cebHO 81JpbPOVHmz7s83oXCsotto9UfSN4jAvEI9CRKCsRBQdoi1f3qRGTU5iONqLe0iqCyBU 5FslMv+bdLAv7tjgiCfdFm6HbDdEflaB/JjdOgtcU0A5lkjMVSh0Z8Gf+5vIXbJeENWl 10ORecBh4JOoWAe+RfoQ1fHKj5ku1ADdTgb6YpdXTvn2OKaw4ptu8ol7C4pd33WTH5a3 lL6Tq/JyCF7uzY/i5S6oyG3qy5Vj3qL9e7sRHEnsqbiAwkdat/QzygNKKEEumd/JiW83 J8LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WKJOrwZ9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id p14si2368426pjj.161.2021.01.13.06.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WKJOrwZ9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 09A9C6EA5A; Wed, 13 Jan 2021 14:50:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2BF2A6EA5A for ; Wed, 13 Jan 2021 14:50:36 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id c124so1837356wma.5 for ; Wed, 13 Jan 2021 06:50:36 -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=hcCYDUMcS26jDuM5+gRx+fiSHXa/31pKXfkIX189fZc=; b=WKJOrwZ97W06sGNe/8643fsBAhUrIy3pw+p8/Z4nnVsXP2eywnUTF/fuu6aqQ7IqnV 6bqyAhBD4abY+s60Rl5IZigMaAmPXz8Uw2c1DpBJK4PQxmaJxmh9tA+R2LxW1BhiiZTk yiuf3i9VtB5gHvfNiYKnHs1w8ffM0OURr8SS6DOOcwdI/uLEYMkd3eiV0TcMkLorYNz2 63JkGhf4cM01/SzrmAxd+HQf+HPnQA/eQoOZlRp6Lb9kAQGSlV4OiRy91CNfm/Ap5ieG bufuyVkbrh7vj7Mtxphu1YXK2MYICuU0icBn09Vb30KwCkk8oOWznjZavOmb2Rr1w40u CRDw== 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=hcCYDUMcS26jDuM5+gRx+fiSHXa/31pKXfkIX189fZc=; b=kzWIEhcvNznKrlmxVhVHqvkJp3bRAC9/F5K6S9zcuUTN/E0TsD9qrSemOSX0axFLjh eeckPHDsU5TQrOFD1G29W8qs7o1lxoEOtD+Ki+zcnPr/GpVjZAqdd686RNa/3L1Lk9WV 8At89pno3GffwXyVbXRlpgxz/zZRXPG2esF/a1SXIlRlnvuUhEa0KvfmJfTqmaM47b+9 OvRoV7ZhZ5KrkR2ZGgAYMbe8zoz/7znnrrIjai2/r8gQ00i0RGFF+haeuh7/9SsKEgQs ohRr1vNi8TZOPKQWm2wnBb5xSlxMpDpgVOdQI8iaIlFvDBeKeUZ9DVNzO417xd4s6G8n 3SLw== X-Gm-Message-State: AOAM530lxeIxn0kYJvSYgxQi13IUZsIbVK2AOSQOKzaNWNCy+e7jOEgD XVCKMttUJKSQl08A9HTCSwy8/Q== X-Received: by 2002:a1c:2d92:: with SMTP id t140mr2585614wmt.114.1610549434915; Wed, 13 Jan 2021 06:50:34 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:34 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 13/31] video: fbdev: nvidia: nv_setup: Remove a couple of unused 'tmp' variables Date: Wed, 13 Jan 2021 14:49:51 +0000 Message-Id: <20210113145009.1272040-14-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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/nvidia/nv_setup.c: In function ‘NVWriteAttr’: drivers/video/fbdev/nvidia/nv_setup.c:92:14: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] drivers/video/fbdev/nvidia/nv_setup.c: In function ‘NVReadAttr’: drivers/video/fbdev/nvidia/nv_setup.c:104:14: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] Cc: Antonino Daplas Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/video/fbdev/nvidia/nv_setup.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/video/fbdev/nvidia/nv_setup.c b/drivers/video/fbdev/nvidia/nv_setup.c index 2fa68669613af..47a96a066f998 100644 --- a/drivers/video/fbdev/nvidia/nv_setup.c +++ b/drivers/video/fbdev/nvidia/nv_setup.c @@ -89,9 +89,7 @@ u8 NVReadSeq(struct nvidia_par *par, u8 index) } void NVWriteAttr(struct nvidia_par *par, u8 index, u8 value) { - volatile u8 tmp; - - tmp = VGA_RD08(par->PCIO, par->IOBase + 0x0a); + VGA_RD08(par->PCIO, par->IOBase + 0x0a); if (par->paletteEnabled) index &= ~0x20; else @@ -101,9 +99,7 @@ void NVWriteAttr(struct nvidia_par *par, u8 index, u8 value) } u8 NVReadAttr(struct nvidia_par *par, u8 index) { - volatile u8 tmp; - - tmp = VGA_RD08(par->PCIO, par->IOBase + 0x0a); + VGA_RD08(par->PCIO, par->IOBase + 0x0a); if (par->paletteEnabled) index &= ~0x20; else