cw1200: use true,false for bool variable
authorzhengbin <zhengbin13@huawei.com>
Tue, 24 Dec 2019 14:16:02 +0000 (22:16 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:40:43 +0000 (17:40 +0200)
Fixes coccicheck warning:

drivers/net/wireless/st/cw1200/txrx.c:718:6-16: WARNING: Assignment of 0/1 to bool variable

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/st/cw1200/txrx.c

index 2dfcdb145944150d8cb2ea526afb7af86fd43940..400dd585916b5c0ab3037d4ecfeb2ce890a71b7c 100644 (file)
@@ -715,7 +715,7 @@ void cw1200_tx(struct ieee80211_hw *dev,
        };
        struct ieee80211_sta *sta;
        struct wsm_tx *wsm;
-       bool tid_update = 0;
+       bool tid_update = false;
        u8 flags = 0;
        int ret;