diff mbox series

[v2] rtlwifi: rtl8821ae: style: Simplify bool comparison

Message ID 1611632768-6293-1-git-send-email-abaci-bugfix@linux.alibaba.com
State New
Headers show
Series [v2] rtlwifi: rtl8821ae: style: Simplify bool comparison | expand

Commit Message

Abaci Team Jan. 26, 2021, 3:46 a.m. UTC
Fix the following coccicheck warning:
./drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:3853:7-17:
WARNING: Comparison of 0/1 to bool variable

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
---

Changes in v2:
-Modify email address

 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kalle Valo Feb. 8, 2021, 10:34 a.m. UTC | #1
Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> wrote:

> Fix the following coccicheck warning:

> ./drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:3853:7-17:

> WARNING: Comparison of 0/1 to bool variable

> 

> Reported-by: Abaci Robot <abaci@linux.alibaba.com>

> Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>


Please use your own email address and real name.

Patch set to Changes Requested.

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/1611632768-6293-1-git-send-email-abaci-bugfix@linux.alibaba.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
index 372d6f8..1fb857c 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
@@ -3848,7 +3848,7 @@  static void _rtl8821ae_iqk_tx(struct ieee80211_hw *hw, enum radio_path path)
 			else
 				rtl_write_dword(rtlpriv, 0xc8c, 0x00163e96);
 
-			if (vdf_enable == 1) {
+			if (vdf_enable) {
 				rtl_dbg(rtlpriv, COMP_IQK, DBG_LOUD, "VDF_enable\n");
 				for (k = 0; k <= 2; k++) {
 					switch (k) {