From patchwork Wed Aug 26 09:33:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 248389 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp4156584ils; Wed, 26 Aug 2020 02:37:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxb1u8MbfY4p9EyAyT3kIwox976ztYb5cxQcr3xpeTirFnSnkHN0guYsbxaiLlWd3QfHDcQ X-Received: by 2002:a05:6402:306f:: with SMTP id bs15mr13826199edb.249.1598434649835; Wed, 26 Aug 2020 02:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598434649; cv=none; d=google.com; s=arc-20160816; b=XeIrKr/uri3QD9ThXkVm30pJlp9iGLIEiK16vVSHVNLhB4w5bKEEKZb9qOl0AuDttH F2f3IMvLJZliHDhyxqy1sK/ED3fdHLcUhhFltFIv48wfAFtXnuvJv58OGdTeOb1kStyV +SQ+FBfnba2t9SEUosc2zrqGYkbXPkUKAguPgiryLnU7iRC1gp1eYyMZ8GuEjK5t24UR qiYBHRC5azDm/sUmGKPjLRPnL4VE9VtvWjQ/TgszvSzhoMaQHMeUgdchzXJFl2x3VNHb 33cwg6N0/tgFAikrRKOQmgVGs4o+URI+YBVTx6gNm8yV19cBhkEPBsOOIGvi3Ag6ECa+ SaEQ== 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=Y9vzHS6aHZF+kDxD6ikVzao6jVEkcdJnGSqUufDJu9w=; b=FPpxHE+tRc2niaUvDut4nui6VVqr3itWNCfzAUOMF4o8eXPtm0GVvnzcz+GKz3w03b dO2XWbJ33Fza+2jotDnVbIrjxVUumZ1UJchSR/MYL/gGRqKRtpCrpxDSLfST4Mv5wPf8 ZphkBuHYfEeW1WrotSf1BqzOtZ70KUUYIBGJSKqjBjIOTidukpQaRpGw0vP4iojEnqsg kZ+oueKcN/oSYHeuyHk35z+2SiwdPNNXkD1Lw/hMW3SWq7TCgwTttEgLjaqsyfjFXz4H CD4xaTfxnVuNcpY4JIMonicF2Fv+ZimzoXq9gtQwVoMDbUTSeF1w8X4IdFU7hVe3NMSz 9CVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YC0J7kOL; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si1123616edy.588.2020.08.26.02.37.29; Wed, 26 Aug 2020 02:37:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=YC0J7kOL; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S1728254AbgHZJh2 (ORCPT + 2 others); Wed, 26 Aug 2020 05:37:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728376AbgHZJfG (ORCPT ); Wed, 26 Aug 2020 05:35:06 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 145FEC06134B for ; Wed, 26 Aug 2020 02:34:32 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id p17so1090165wrj.8 for ; Wed, 26 Aug 2020 02:34:32 -0700 (PDT) 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=Y9vzHS6aHZF+kDxD6ikVzao6jVEkcdJnGSqUufDJu9w=; b=YC0J7kOL2kJwoCB6PgkNpW5h3dq6NVC2Xkws2NJEAH5xD2iKNQobz7x/NieN3UBwaM cSn2z7m4Smw7oi2IWzzyP/ohnJE3YCZOtULAeRrePXs6M5iC/emGeaaGP+9bxGeazca/ XME3AmOZg1kmyCCBeoP7SBIgjOvM0Twrt2+nKfkF8nC8UbaFCTW8QbDAMZ9U2wHWbUmr LoKbo+u8L1/REpsf1gxSh/Z8XFx0y1MbeHZJe5QM7dyEyyg+CcQ/0Jdnv6ScroburOgu +rAMk8tWQ4Lg9SaajGHqbhpP3cjBL7rEyrGnlPYUwPigpw7QeM8kH5AHWTP5FCw7t5Ct fSYg== 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=Y9vzHS6aHZF+kDxD6ikVzao6jVEkcdJnGSqUufDJu9w=; b=gYehrBFxYnmVwHqPAOZLeyuSXIAPCJNkwZCopTug0/dcW++c/KUejCiCMrun+kS6Uz zzovgRzVSPLvgO0IFlQ5R3KvNT4X6EgspVLhfvtUt63hBuqRZ518pAvxKNM4xweQXJWQ 2enFaLi3ba3xfj38eyPR4cS+i+ut8/rLFRQ2R+DqSCO3ISOCgUATnTiII9Xg25H/Xk0z sFH7cK1fQxBfVgjJdp62IzQbTalVucbCQ8QyA1tog83gN82y3DB6rekQ16OUpFsfaVJ5 vJM37CkE8tVdFgeJYj2VeWaIIEEiYnP2NnRNVkM7o7YXeJvOv0OKL4e/9zMRdO2qJLqf sY4w== X-Gm-Message-State: AOAM530sN8f+38HwurJNPn5MozXjJWi1/ud6hNvvEfGlFGA4XSS9ELbf 6+jOKZS0OZ3Qx4CuqDiHup0E3Q== X-Received: by 2002:a5d:56c6:: with SMTP id m6mr6343048wrw.204.1598434470695; Wed, 26 Aug 2020 02:34:30 -0700 (PDT) Received: from dell.default ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id u3sm3978759wml.44.2020.08.26.02.34.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 02:34:30 -0700 (PDT) From: Lee Jones To: kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Lee Jones , Yan-Hsuan Chuang Subject: [PATCH 21/30] wireless: realtek: rtw88: debug: Remove unused variables 'val' Date: Wed, 26 Aug 2020 10:33:52 +0100 Message-Id: <20200826093401.1458456-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200826093401.1458456-1-lee.jones@linaro.org> References: <20200826093401.1458456-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/net/wireless/realtek/rtw88/debug.c: In function ‘rtw_debug_get_mac_page’: drivers/net/wireless/realtek/rtw88/debug.c:430:6: warning: variable ‘val’ set but not used [-Wunused-but-set-variable] drivers/net/wireless/realtek/rtw88/debug.c: In function ‘rtw_debug_get_bb_page’: drivers/net/wireless/realtek/rtw88/debug.c:450:6: warning: variable ‘val’ set but not used [-Wunused-but-set-variable] Cc: Yan-Hsuan Chuang Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/realtek/rtw88/debug.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/net/wireless/realtek/rtw88/debug.c b/drivers/net/wireless/realtek/rtw88/debug.c index f769c982cc91e..985cf5d606159 100644 --- a/drivers/net/wireless/realtek/rtw88/debug.c +++ b/drivers/net/wireless/realtek/rtw88/debug.c @@ -427,12 +427,11 @@ static int rtw_debug_get_mac_page(struct seq_file *m, void *v) { struct rtw_debugfs_priv *debugfs_priv = m->private; struct rtw_dev *rtwdev = debugfs_priv->rtwdev; - u32 val; u32 page = debugfs_priv->cb_data; int i, n; int max = 0xff; - val = rtw_read32(rtwdev, debugfs_priv->cb_data); + rtw_read32(rtwdev, debugfs_priv->cb_data); for (n = 0; n <= max; ) { seq_printf(m, "\n%8.8x ", n + page); for (i = 0; i < 4 && n <= max; i++, n += 4) @@ -447,12 +446,11 @@ static int rtw_debug_get_bb_page(struct seq_file *m, void *v) { struct rtw_debugfs_priv *debugfs_priv = m->private; struct rtw_dev *rtwdev = debugfs_priv->rtwdev; - u32 val; u32 page = debugfs_priv->cb_data; int i, n; int max = 0xff; - val = rtw_read32(rtwdev, debugfs_priv->cb_data); + rtw_read32(rtwdev, debugfs_priv->cb_data); for (n = 0; n <= max; ) { seq_printf(m, "\n%8.8x ", n + page); for (i = 0; i < 4 && n <= max; i++, n += 4)