summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
diff options
context:
space:
mode:
authorKevin Lo <kevlo@kevlo.org>2018-09-03 22:57:35 +0800
committerKalle Valo <kvalo@codeaurora.org>2018-09-04 11:17:43 +0300
commitb9bcce366bd5cf5da634a689afcd54058767c359 (patch)
tree4b0e927de91879b8df271914ed0f9009a18c5663 /drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
parentec7eccf7ad1cd5f13614e77f59c87fe1f37bf56c (diff)
downloadtalos-obmc-linux-b9bcce366bd5cf5da634a689afcd54058767c359.tar.gz
talos-obmc-linux-b9bcce366bd5cf5da634a689afcd54058767c359.zip
rtlwifi: remove set but unused variables
Remove set but unused variables from _rtl88ee_hw_configure() and _rtl8723e_hw_configure(). Signed-off-by: Kevin Lo <kevlo@kevlo.org> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c')
-rw-r--r--drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
index 545115db507e..f783e4a8083d 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
@@ -799,11 +799,9 @@ static void _rtl8723e_hw_configure(struct ieee80211_hw *hw)
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
struct rtl_priv *rtlpriv = rtl_priv(hw);
u8 reg_bw_opmode;
- u32 reg_ratr, reg_prsr;
+ u32 reg_prsr;
reg_bw_opmode = BW_OPMODE_20MHZ;
- reg_ratr = RATE_ALL_CCK | RATE_ALL_OFDM_AG |
- RATE_ALL_OFDM_1SS | RATE_ALL_OFDM_2SS;
reg_prsr = RATE_ALL_CCK | RATE_ALL_OFDM_AG;
rtl_write_byte(rtlpriv, REG_INIRTS_RATE_SEL, 0x8);
OpenPOWER on IntegriCloud