diff options
author | 2022-12-05 11:53:42 +0300 | |
---|---|---|
committer | 2022-12-08 16:52:35 +0200 | |
commit | 49ebca0d9018ff3517b24972f6f2a9f3d0dc956f (patch) | |
tree | a68971b1fb5fd97765736e80252ab79cd112b8c9 | |
parent | wifi: rtw88: Add rtw8723du chipset support (diff) | |
download | wireguard-linux-49ebca0d9018ff3517b24972f6f2a9f3d0dc956f.tar.xz wireguard-linux-49ebca0d9018ff3517b24972f6f2a9f3d0dc956f.zip |
wifi: rtlwifi: rtl8192se: remove redundant rtl_get_bbreg() call
Extra rtl_get_bbreg() call looks like redundant reading. The read has
already been done in the "else" branch. Compile test only.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Peter Kosyh <pkosyh@yandex.ru>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221205085342.677329-1-pkosyh@yandex.ru
-rw-r--r-- | drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c index aaa004d4d6d0..09591a0b5a81 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c @@ -115,9 +115,6 @@ static u32 _rtl92s_phy_rf_serial_read(struct ieee80211_hw *hw, retvalue = rtl_get_bbreg(hw, pphyreg->rf_rb, BLSSI_READBACK_DATA); - retvalue = rtl_get_bbreg(hw, pphyreg->rf_rb, - BLSSI_READBACK_DATA); - rtl_dbg(rtlpriv, COMP_RF, DBG_TRACE, "RFR-%d Addr[0x%x]=0x%x\n", rfpath, pphyreg->rf_rb, retvalue); |