From patchwork Wed Jan 13 14:49:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362119 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp598010jap; Wed, 13 Jan 2021 06:50:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQvLlOgh1Zg++sQAWk+eSnMTTzglydWyAha1JJavKzSpzpwJ0rdaNHUGFk5TK0jKiSYFdG X-Received: by 2002:a17:90a:bd12:: with SMTP id y18mr2897846pjr.146.1610549438779; Wed, 13 Jan 2021 06:50:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549438; cv=none; d=google.com; s=arc-20160816; b=XrW3R8JzHPZmeyl3TlrwJVirp7wUVRzgOdeI1zr+Oq5TWS5CY/yX6LqBtacQ5KL+9v 3+NhWxXyJChzQo3YTfPBRlbA6AVkJcmuUI2wI6Sl+3xXNVX2C5hD3eTwqodY1jDykLGX BFj0Ew08RJ6vEi7iXep2puLAxAbI7fQsG2ToaN+7kKlD4EA6hU4qSMNLoU4V8/sbQmrP hdLFVFcCdjzQpxPZEuBwXdj9R9L9mZPZSfDJQfHZN6LsW/C7qeq2kd8BvoqB3aMR7CnR 95H6Wf2xUqA7vftD4Kcq3l0YUZixvQl3brx35ypwMVSyEpH1C8VLN2b+N4HVg0gdSiRg +SXw== 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=KzpkUo6jZ3kBil/3T4y1KZOGk+Wo84lMZOhrtJBbuVM=; b=Rl8Nt5wCQRbFi9fqGoz+yO1adsK78xmIeiex5CYEm96oFY94Xpx/CP/huIEhoX8wps xiGFuQ1PCKcl74rAxfrWpvAJKRg28D6CaqB3+Ei1nmFoPPVT+1U85oDe/KLRL5yLdSOQ tokkruXmFd9xuW2DkNZgeNcxq2my/1Qtp/O4/wQUZf7JLJAyvPDIxX15Rbafb+W/lQES v3NZHtieJbTfoMJFlifNH6PAaGXHMGrsyK2PluynQ5SzRRIn6tS+ZjMwNP+Cw9BcK/17 aLlWaSBt+oSlvpBOuz5yguTvTIVbvv7lHYOL0Qrw8nO8FBISIlKJ/tp+ICIgbdjhMXN9 yg+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=q+MZOwcK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id i18si2884450pgg.404.2021.01.13.06.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=q+MZOwcK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 0FD956EA53; Wed, 13 Jan 2021 14:50:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 26C366EA58 for ; Wed, 13 Jan 2021 14:50:27 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id i9so2418162wrc.4 for ; Wed, 13 Jan 2021 06:50:27 -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=xVuJfuGZFscYbOy1MUiffPVpTle7WgNo/eVkJwf7WNU=; b=q+MZOwcKb62nI3dDtefjHxCD1svvGR60Jf4GADTHbVCFSZk5ahffVs42713RFmCF3M hhNPD9AVosxvdPh3Z8yE2EAX9AIqiNvXNvlrh/+KWS1FF0B5BjXeeykrTfib5131sKFj mn2tgU4dkCSlErK842cyu7HwusDnIaakfzs1I7cSnM4yplICdcp2mBAJcvH34TWQSDE0 Dng1yBz0vV3j29G56BqJw78ZGoOyPY6hhoK+WPjPT+6lUPxLOPjPUWuXCAoeTfdRwhJo a9h437HEm5yNmdhcoLqG033+xaunKcJYY/dyF8W3QR8fqLXStt350nJ0m0HkPZgnnZIh 3SRw== 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=xVuJfuGZFscYbOy1MUiffPVpTle7WgNo/eVkJwf7WNU=; b=tnnxANOUwjZxjy3B3kKKlI466zb5bvwItjp7OcuCMNhM1OPhCFTjeC15+DKZV1rlDm 0DhMBoX6EToaGkCtC8RHNq5PiZnnLmqfWgzNnwmX6UHNe+euNjus8eouitHQ6izpyXng uTLaHdBiLHtaPqFeMVJj6Oz4GlcN4AVugzOmN0uZrMENrF/yc4izfkcx8vgypzS4OFqg ZupKBnGAC64so1yfDcL4RpC/oxDoOYPyrQqTTp5+OsfjnqH/kp0B69ilwHo2uf9ws5h0 Y/bpjM7O5VpeJR5T7J6+GHKsuVjeDhlNOL2A9t8G6kJPWloOXZu4z0ws0gsGaPRUeNU0 7m+Q== X-Gm-Message-State: AOAM531bUsVELt4YQMfhoGPtRJ6yC3U7SYJKfGY4U5VUWzK0jKfFIiS7 /U579Y9U/yAULZC6l/rFhfIUwg== X-Received: by 2002:a5d:4d50:: with SMTP id a16mr2925284wru.43.1610549425879; Wed, 13 Jan 2021 06:50:25 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:24 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 08/31] video: fbdev: sis: sis_main: Remove unused variable 'reg' Date: Wed, 13 Jan 2021 14:49:46 +0000 Message-Id: <20210113145009.1272040-9-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: Gerd Knorr , linux-fbdev@vger.kernel.org, Thomas Winischhofer , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/sis/sis_main.c: In function ‘sisfb_post_xgi_ddr2’: drivers/video/fbdev/sis/sis_main.c:5032:5: warning: variable ‘reg’ set but not used [-Wunused-but-set-variable] Cc: Thomas Winischhofer Cc: Gerd Knorr Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/video/fbdev/sis/sis_main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/video/fbdev/sis/sis_main.c b/drivers/video/fbdev/sis/sis_main.c index 03c736f6f3d08..266a5582f94d3 100644 --- a/drivers/video/fbdev/sis/sis_main.c +++ b/drivers/video/fbdev/sis/sis_main.c @@ -5029,7 +5029,6 @@ static void sisfb_post_xgi_ddr2(struct sis_video_info *ivideo, u8 regb) static const u8 cs168[8] = { 0x48, 0x78, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00 }; - u8 reg; u8 v1; u8 v2; u8 v3; @@ -5037,9 +5036,9 @@ static void sisfb_post_xgi_ddr2(struct sis_video_info *ivideo, u8 regb) SiS_SetReg(SISCR, 0xb0, 0x80); /* DDR2 dual frequency mode */ SiS_SetReg(SISCR, 0x82, 0x77); SiS_SetReg(SISCR, 0x86, 0x00); - reg = SiS_GetReg(SISCR, 0x86); + SiS_GetReg(SISCR, 0x86); SiS_SetReg(SISCR, 0x86, 0x88); - reg = SiS_GetReg(SISCR, 0x86); + SiS_GetReg(SISCR, 0x86); v1 = cs168[regb]; v2 = cs160[regb]; v3 = cs158[regb]; if (ivideo->haveXGIROM) { v1 = bios[regb + 0x168]; @@ -5049,9 +5048,9 @@ static void sisfb_post_xgi_ddr2(struct sis_video_info *ivideo, u8 regb) SiS_SetReg(SISCR, 0x86, v1); SiS_SetReg(SISCR, 0x82, 0x77); SiS_SetReg(SISCR, 0x85, 0x00); - reg = SiS_GetReg(SISCR, 0x85); + SiS_GetReg(SISCR, 0x85); SiS_SetReg(SISCR, 0x85, 0x88); - reg = SiS_GetReg(SISCR, 0x85); + SiS_GetReg(SISCR, 0x85); SiS_SetReg(SISCR, 0x85, v2); SiS_SetReg(SISCR, 0x82, v3); SiS_SetReg(SISCR, 0x98, 0x01);