rtlwifi: rtl8723be: Fix Smatch warnings
Smatch reports the following: CHECK drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:1726 _rtl8723be_phy_path_a_rx_iqk() warn: inconsistent indenting drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:2304 _rtl8723be_phy_lc_calibrate() warn: inconsistent indenting drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:2609 _rtl8723be_phy_set_rf_power_state() warn: inconsistent indenting CHECK drivers/net/wireless/realtek/rtlwifi/rtl8723be/rf.c drivers/net/wireless/realtek/rtlwifi/rtl8723be/rf.c:306 _rtl8723be_get_txpower_writeval_by_regulatory() warn: inconsistent indenting Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
154fb486df
commit
b3c4201bce
|
@ -1723,8 +1723,8 @@ static u8 _rtl8723be_phy_path_a_rx_iqk(struct ieee80211_hw *hw)
|
|||
|
||||
/* Allen 20131125 */
|
||||
tmp = (reg_eac & 0x03FF0000) >> 16;
|
||||
if ((tmp & 0x200) > 0)
|
||||
tmp = 0x400 - tmp;
|
||||
if ((tmp & 0x200) > 0)
|
||||
tmp = 0x400 - tmp;
|
||||
/* if Tx is OK, check whether Rx is OK */
|
||||
if (!(reg_eac & BIT(27)) &&
|
||||
(((reg_ea4 & 0x03FF0000) >> 16) != 0x132) &&
|
||||
|
@ -2301,8 +2301,7 @@ static void _rtl8723be_phy_lc_calibrate(struct ieee80211_hw *hw, bool is2t)
|
|||
} else {
|
||||
rtl_write_byte(rtlpriv, REG_TXPAUSE, 0x00);
|
||||
}
|
||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "\n");
|
||||
|
||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "\n");
|
||||
}
|
||||
|
||||
static void _rtl8723be_phy_set_rfpath_switch(struct ieee80211_hw *hw,
|
||||
|
@ -2606,8 +2605,7 @@ static bool _rtl8723be_phy_set_rf_power_state(struct ieee80211_hw *hw,
|
|||
"IPS Set eRf nic enable\n");
|
||||
rtstatus = rtl_ps_enable_nic(hw);
|
||||
} while (!rtstatus && (initializecount < 10));
|
||||
RT_CLEAR_PS_LEVEL(ppsc,
|
||||
RT_RF_OFF_LEVL_HALT_NIC);
|
||||
RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC);
|
||||
} else {
|
||||
RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG,
|
||||
"Set ERFON sleeped:%d ms\n",
|
||||
|
|
|
@ -303,8 +303,8 @@ static void _rtl8723be_get_txpower_writeval_by_regulatory(
|
|||
[chnlgroup][index + (rf ? 8 : 0)] &
|
||||
(0x7f << (i * 8))) >> (i * 8));
|
||||
|
||||
if (pwr_diff_limit[i] > pwr_diff)
|
||||
pwr_diff_limit[i] = pwr_diff;
|
||||
if (pwr_diff_limit[i] > pwr_diff)
|
||||
pwr_diff_limit[i] = pwr_diff;
|
||||
}
|
||||
|
||||
customer_limit = (pwr_diff_limit[3] << 24) |
|
||||
|
|
Loading…
Reference in New Issue