rtlwifi: rtl8188ee: use true,false for bool variables
authorJason Yan <yanaijie@huawei.com>
Sat, 18 Apr 2020 07:02:32 +0000 (15:02 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Apr 2020 12:57:51 +0000 (15:57 +0300)
Fix the following coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c:70:1-34: WARNING:
Assignment of 0/1 to bool variable
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c:72:1-34: WARNING:
Assignment of 0/1 to bool variable

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200418070236.9620-2-yanaijie@huawei.com
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c

index 4865639..02b7752 100644 (file)
@@ -67,9 +67,9 @@ static int rtl88e_init_sw_vars(struct ieee80211_hw *hw)
        char *fw_name;
 
        rtl8188ee_bt_reg_init(hw);
-       rtlpriv->dm.dm_initialgain_enable = 1;
+       rtlpriv->dm.dm_initialgain_enable = true;
        rtlpriv->dm.dm_flag = 0;
-       rtlpriv->dm.disable_framebursting = 0;
+       rtlpriv->dm.disable_framebursting = false;
        rtlpriv->dm.thermalvalue = 0;
        rtlpci->transmit_config = CFENDFORM | BIT(15);