mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
rtlwifi: rtl8188ee: Remove set but unused variable 'reg_ea4'
Fixes the following W=1 kernel build warning(s): drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c: In function ‘_rtl88e_phy_path_a_iqk’: drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c:1351:33: warning: variable ‘reg_ea4’ 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: Larry Finger <Larry.Finger@lwfinger.net> Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20201102112410.1049272-30-lee.jones@linaro.org
This commit is contained in:
parent
0a43d993ee
commit
6c75eab041
|
|
@ -1348,7 +1348,7 @@ static bool _rtl88e_phy_set_sw_chnl_cmdarray(struct swchnlcmd *cmdtable,
|
|||
|
||||
static u8 _rtl88e_phy_path_a_iqk(struct ieee80211_hw *hw, bool config_pathb)
|
||||
{
|
||||
u32 reg_eac, reg_e94, reg_e9c, reg_ea4;
|
||||
u32 reg_eac, reg_e94, reg_e9c;
|
||||
u8 result = 0x00;
|
||||
|
||||
rtl_set_bbreg(hw, 0xe30, MASKDWORD, 0x10008c1c);
|
||||
|
|
@ -1365,7 +1365,7 @@ static u8 _rtl88e_phy_path_a_iqk(struct ieee80211_hw *hw, bool config_pathb)
|
|||
reg_eac = rtl_get_bbreg(hw, 0xeac, MASKDWORD);
|
||||
reg_e94 = rtl_get_bbreg(hw, 0xe94, MASKDWORD);
|
||||
reg_e9c = rtl_get_bbreg(hw, 0xe9c, MASKDWORD);
|
||||
reg_ea4 = rtl_get_bbreg(hw, 0xea4, MASKDWORD);
|
||||
rtl_get_bbreg(hw, 0xea4, MASKDWORD);
|
||||
|
||||
if (!(reg_eac & BIT(28)) &&
|
||||
(((reg_e94 & 0x03FF0000) >> 16) != 0x142) &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user