Commit 4cff897c authored by Zheng Bin's avatar Zheng Bin Committed by Kalle Valo

rtlwifi: rtl8192c: fix comparison to bool warning in phy_common.c

Fixes coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c:1106:14-18: WARNING: Comparison to bool
Signed-off-by: default avatarZheng Bin <zhengbin13@huawei.com>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200918102505.16036-3-zhengbin13@huawei.com
parent 027a4c9c
...@@ -1103,7 +1103,7 @@ static void _rtl92c_phy_path_adda_on(struct ieee80211_hw *hw, ...@@ -1103,7 +1103,7 @@ static void _rtl92c_phy_path_adda_on(struct ieee80211_hw *hw,
u32 i; u32 i;
pathon = is_patha_on ? 0x04db25a4 : 0x0b1b25a4; pathon = is_patha_on ? 0x04db25a4 : 0x0b1b25a4;
if (false == is2t) { if (!is2t) {
pathon = 0x0bdb25a0; pathon = 0x0bdb25a0;
rtl_set_bbreg(hw, addareg[0], MASKDWORD, 0x0b1b25a0); rtl_set_bbreg(hw, addareg[0], MASKDWORD, 0x0b1b25a0);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment