brcmsmac: remove Comparison to bool in brcms_b_txstatus()
authorJason Yan <yanaijie@huawei.com>
Mon, 4 May 2020 11:33:57 +0000 (19:33 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 6 May 2020 08:41:46 +0000 (11:41 +0300)
Fix the following coccicheck warning:

drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c:1060:6-12:
WARNING: Comparison to bool

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200504113357.41422-1-yanaijie@huawei.com
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c

index d88f8d4..77494fc 100644 (file)
@@ -1057,7 +1057,7 @@ brcms_b_txstatus(struct brcms_hardware *wlc_hw, bool bound, bool *fatal)
                txs->lasttxtime = 0;
 
                *fatal = brcms_c_dotxstatus(wlc_hw->wlc, txs);
-               if (*fatal == true)
+               if (*fatal)
                        return false;
                n++;
        }