Message ID | 20201102112410.1049272-33-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp3644442ilc; Mon, 2 Nov 2020 03:26:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1CtTt538oeeT1N0tQeVjzf0tki27gG13NwuqirjiOxcZ4rU2xyyVOdtIYzsJGRucwAC5w X-Received: by 2002:a17:906:c352:: with SMTP id ci18mr15205767ejb.182.1604316383597; Mon, 02 Nov 2020 03:26:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604316383; cv=none; d=google.com; s=arc-20160816; b=jfb4Wqp/DC9dOj4lc97OiQBcsdNIW8g+5eN4jIEUPBRZFSDdT1cfRqOTLMUmikH2P3 h6Dv5lXzOeBQPV5D5JN/aSAklkwlUwa3QOB/NA+xgUEo/L8GowIoYPf46ONEtdACaMBJ 5XXDlo4I6TnuZ3P5PHv5VzSjbRGXQ8b3cZ89lOIcWPp9uWRMRQvkuOOZW0DdH0o4wOnw AbLfVpeuYolX94jSrh3B6eSdAPgg28QF9I0X9A05U0w0Twonr1zboNkkUU6yocCG6PdI IrO7beVFXoBGZu6XUG6uvXTlHjIJOZpEyxI6yIHldUL6FSxHkof7K0qZ1orIRg0hdRZB hqAg== 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=xeSA2mlsN3ZwFX+jKncibbMs9rhzwDQUIegRTfjnveQ=; b=Ex8UdLjcSA1O/m7cyoT35hcCyTSJiZj3ooLhysRBAny1W53VaVBbFbaK0zuQ9ynzJp zNpw1x4kNZZnh8VfbsDWaPqZMKKDMq/TYxx1lY+ucL2kExI9lWsJbZHkacWSYFiaqYDB 3G7G9HBmAJrnLsSx/+uzTjmXlLsfvXfk1lyw4uiH2FD3Rn/MtRrszSdhM8aDLBLKOZZz hIbb7vyQ1nN6JrouaxgsLkg+ATtoxOsGF7HvvKLE+tjqrkWl+rN5XTK75bhe+S3bLd5J qnjPjHyHIMQZ3QsuiSJiPT4gnq0rcPpVsao1bWZNIsx8U/Qu/MgVtyK/hbZe34YvHuxU TRhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VVEaf7Y3; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si6476968ejy.140.2020.11.02.03.26.23; Mon, 02 Nov 2020 03:26:23 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=VVEaf7Y3; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1728857AbgKBL0S (ORCPT <rfc822;patch@linaro.org> + 8 others); Mon, 2 Nov 2020 06:26:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728858AbgKBLZC (ORCPT <rfc822;netdev@vger.kernel.org>); Mon, 2 Nov 2020 06:25:02 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 590CFC061A04 for <netdev@vger.kernel.org>; Mon, 2 Nov 2020 03:25:02 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id h62so4303643wme.3 for <netdev@vger.kernel.org>; Mon, 02 Nov 2020 03:25:02 -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=xeSA2mlsN3ZwFX+jKncibbMs9rhzwDQUIegRTfjnveQ=; b=VVEaf7Y3SMh5enKI6sSPYS8qBdEmniXBDjhnPr0ooccJuHZYNLZ4XYsVQ29Lz1HWbr mD1A9erhbVayOVS8PFa4vfgnc1g/odoQ/HQfHaCLJfCSwt9uAt+5EaCuw3vHkPQZwGUY PPq6PHFZl3sCfe1oy5Zxm0pdXlUgtk7AHmepYV14X/JQjha4+sHEi9AdQzeDlrGFyrls C5dFcfwXqcHy6fNTYb5iKGcpez5621C10J1ZTHasWWEvWpxP1XSOoL+WaMcNptm8IHkb fpn0n0ewRvXQaEaF/RSbC9bLWYM3+2umG2T54UHfFFGM4naI4aUtfk1KXQhB1Si8Zu/Q /PBw== 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=xeSA2mlsN3ZwFX+jKncibbMs9rhzwDQUIegRTfjnveQ=; b=Z67heuhkghBMbcVdIJ+gT79g3gsgjDh94E54o9fDdxfJKUkGjIoGTZlXJ98WK2Ymjt m3b5d+UYKJQfJLw9G6zAR0f6y/xeo5pMV7nkcU1Z5fl0YWUWxeGw8QiRpuPFpUS9t8FQ y3CzauHL5v4Mx6OKDmqwwboUW+2qTPyPoYKfGWvtcZ7A1q7w7c/jCAMnbnFq+raokAmi syQFtru+mNkHXj1z/LMuDZ+xgcnz2ftX2plAiWO6LNUROrlItDSuq1pBAhbde1gAi3va 79/CpcODzLLqbMIU/PZd8QGZRjfVqGpflGTpwK1GTB5pSJDUYkoO58fuDuyuu+DwO1kc YHcg== X-Gm-Message-State: AOAM5317NExF6MUjWnUkVlkjXu2u3eEj2y1gaFiuxjLF/oLjMX0u80lZ kxporgntplBG+i59vREqLhEVgQ== X-Received: by 2002:a7b:c109:: with SMTP id w9mr11271120wmi.34.1604316301079; Mon, 02 Nov 2020 03:25:01 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id m14sm21867354wro.43.2020.11.02.03.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 03:25:00 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: kvalo@codeaurora.org Cc: linux-kernel@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, Ping-Ke Shih <pkshih@realtek.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 32/41] rtl8723be: trx: Remove set but unused variable 'cck_highpwr' Date: Mon, 2 Nov 2020 11:24:01 +0000 Message-Id: <20201102112410.1049272-33-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201102112410.1049272-1-lee.jones@linaro.org> References: <20201102112410.1049272-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
[01/41] wil6210: wmi: Correct misnamed function parameter 'ptr_'
|
expand
|
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c index 559ab78687c37..5a7cd270575a2 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c @@ -50,7 +50,6 @@ static void _rtl8723be_query_rxphystatus(struct ieee80211_hw *hw, pstatus->rx_mimo_signalquality[1] = -1; if (is_cck) { - u8 cck_highpwr; u8 cck_agc_rpt; cck_agc_rpt = p_phystrpt->cck_agc_rpt_ofdm_cfosho_a; @@ -59,8 +58,7 @@ static void _rtl8723be_query_rxphystatus(struct ieee80211_hw *hw, /* (2)PWDB, Average PWDB cacluated by * hardware (for rate adaptive) */ - cck_highpwr = (u8)rtl_get_bbreg(hw, RFPGA0_XA_HSSIPARAMETER2, - BIT(9)); + rtl_get_bbreg(hw, RFPGA0_XA_HSSIPARAMETER2, BIT(9)); lan_idx = ((cck_agc_rpt & 0xE0) >> 5); vga_idx = (cck_agc_rpt & 0x1f);
Fixes the following W=1 kernel build warning(s): drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c: In function ‘_rtl8723be_query_rxphystatus’: drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c:53:6: warning: variable ‘cck_highpwr’ set but not used [-Wunused-but-set-variable] Cc: Ping-Ke Shih <pkshih@realtek.com> Cc: Kalle Valo <kvalo@codeaurora.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.25.1