mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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>
This commit is contained in:
parent
ec7eccf7ad
commit
b9bcce366b
@ -951,12 +951,8 @@ static bool _rtl88ee_init_mac(struct ieee80211_hw *hw)
|
||||
static void _rtl88ee_hw_configure(struct ieee80211_hw *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_dword(rtlpriv, REG_RRSR, reg_prsr);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user