Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp591619ybp; Fri, 4 Oct 2019 01:38:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZHlztkTeA4XZHSrFIDhJYRZRzCk7QpaG/63reccxwgjCSZ/hhqRinP6Ud9oxvexUcdUlU X-Received: by 2002:a17:906:16cd:: with SMTP id t13mr11349424ejd.153.1570178302571; Fri, 04 Oct 2019 01:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570178302; cv=none; d=google.com; s=arc-20160816; b=yVPnWihyudVhwLwhf8kQEUJgjTt3iBPPeUk02vaLYo5NNb+na50Ok+4otZ8Ggb2jxy uU1yYD1xUbgWjJ/L3DGBIj0WnJ+6swP6qvWr6mxOsl7Wh9Uo38Xea9loXJH43UhGJ6Cf e5gI7kK/PmXjfxmpZDz2JksgrCYCyF5sf6IpElaweRl8liUMvjipaDNUY4IgsXfh5Il1 dfmqTtOZE2FgJ1vRNBkd5tlBmYkfZN3seUM/aXCfaoBn0RzLd07D2jLnk4vxd9jhYuK9 4nHiegzk0uVf/kxoxiN/PZiwCTaDoJraSJwzpSKrYLMdR3j9tH8VpiQnhDrOu0ohzvoI OqmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=6ivRTESUdLslLkYJ2A6dBNew1g25kpelAFn3zNisJ7w=; b=r8kmPkPm1zYsSAS6n2UAAVa3MjlBQMHxNwTRWzRv8fjZcRYyX4+qmUHWk9AQd3QB3z Ohyz4hSjGKVS/UtJ0WEF0gtDPV7XRSCRyudQH/jsaaQQ+wgNmJl19J2ZteinC4pq6Aux +4+28ugse2MEk5eN6/WhQ/9tX3pNjhhlTBs5cEwae1X/WskxZkyRGgDkgMc+psWbGEhE kjw/AJak/LqOb3FBBQB95WSL3G4mp9abjjGCc6XjF71ObzTym42WKyZqfWQ7wf6we45k p3w7/29ynEx8b0bPOOmF5ZqxLPQ3uzWhDm6aZ36QT1oDxEYLBjnMOoJP2ZwM+Hfzp41m sgEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si3002901edx.139.2019.10.04.01.37.57; Fri, 04 Oct 2019 01:38:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727242AbfJDIgz (ORCPT + 99 others); Fri, 4 Oct 2019 04:36:55 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43546 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729311AbfJDIgz (ORCPT ); Fri, 4 Oct 2019 04:36:55 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D34C4F2B6CD4AE77E543; Fri, 4 Oct 2019 16:36:52 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Fri, 4 Oct 2019 16:36:44 +0800 From: zhengbin To: , , , , , CC: Subject: [PATCH 1/8] rtlwifi: rtl8821ae: Remove set but not used variables 'rtstatus','bd' Date: Fri, 4 Oct 2019 16:43:48 +0800 Message-ID: <1570178635-57582-2-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570178635-57582-1-git-send-email-zhengbin13@huawei.com> References: <1570178635-57582-1-git-send-email-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c: In function rtl8812ae_phy_config_rf_with_headerfile: drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:2079:7: warning: variable rtstatus set but not used [-Wunused-but-set-variable] drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c: In function rtl8821ae_phy_config_rf_with_headerfile: drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:2114:7: warning: variable rtstatus set but not used [-Wunused-but-set-variable] drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c: In function _rtl8812ae_phy_get_txpower_limit: drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:2354:6: warning: variable bd set but not used [-Wunused-but-set-variable] They are not used since commit f1d2b4d338bf ("rtlwifi: rtl818x: Move drivers into new realtek directory") Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c index 979e434..c54b80d 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c @@ -2076,7 +2076,6 @@ static bool _rtl8821ae_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw, bool rtl8812ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, enum radio_path rfpath) { - bool rtstatus = true; u32 *radioa_array_table_a, *radioa_array_table_b; u16 radioa_arraylen_a, radioa_arraylen_b; struct rtl_priv *rtlpriv = rtl_priv(hw); @@ -2088,7 +2087,6 @@ bool rtl8812ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Radio_A:RTL8821AE_RADIOA_ARRAY %d\n", radioa_arraylen_a); RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath); - rtstatus = true; switch (rfpath) { case RF90_PATH_A: return __rtl8821ae_phy_config_with_headerfile(hw, @@ -2111,7 +2109,6 @@ bool rtl8812ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, bool rtl8821ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, enum radio_path rfpath) { - bool rtstatus = true; u32 *radioa_array_table; u16 radioa_arraylen; struct rtl_priv *rtlpriv = rtl_priv(hw); @@ -2121,7 +2118,6 @@ bool rtl8821ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Radio_A:RTL8821AE_RADIOA_ARRAY %d\n", radioa_arraylen); RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath); - rtstatus = true; switch (rfpath) { case RF90_PATH_A: return __rtl8821ae_phy_config_with_headerfile(hw, @@ -2351,7 +2347,7 @@ static s8 _rtl8812ae_phy_get_txpower_limit(struct ieee80211_hw *hw, struct rtl_phy *rtlphy = &rtlpriv->phy; short band_temp = -1, regulation = -1, bandwidth_temp = -1, rate_section = -1, channel_temp = -1; - u16 bd, regu, bdwidth, sec, chnl; + u16 regu, bdwidth, sec, chnl; s8 power_limit = MAX_POWER_INDEX; if (rtlefuse->eeprom_regulatory == 2) @@ -2472,7 +2468,6 @@ static s8 _rtl8812ae_phy_get_txpower_limit(struct ieee80211_hw *hw, return MAX_POWER_INDEX; } - bd = band_temp; regu = regulation; bdwidth = bandwidth_temp; sec = rate_section; -- 2.7.4