0eb169c2d35b80bc581fcb117d6b8357f689a97a
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / brcm / 117-v5.6-brcmfmac-use-true-false-for-bool-variable.patch
1 From b92c017deda819e45a0f054f6df6b53e645d7fe4 Mon Sep 17 00:00:00 2001
2 From: zhengbin <zhengbin13@huawei.com>
3 Date: Tue, 24 Dec 2019 22:16:06 +0800
4 Subject: [PATCH] brcmfmac: use true,false for bool variable
5
6 Fixes coccicheck warning:
7
8 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c:911:2-24: WARNING: Assignment of 0/1 to bool variable
9
10 Reported-by: Hulk Robot <hulkci@huawei.com>
11 Signed-off-by: zhengbin <zhengbin13@huawei.com>
12 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
13 ---
14 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c
18 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c
19 @@ -908,7 +908,7 @@ static u8 brcmf_fws_hdrpush(struct brcmf
20 wlh += wlh[1] + 2;
21
22 if (entry->send_tim_signal) {
23 - entry->send_tim_signal = 0;
24 + entry->send_tim_signal = false;
25 wlh[0] = BRCMF_FWS_TYPE_PENDING_TRAFFIC_BMP;
26 wlh[1] = BRCMF_FWS_TYPE_PENDING_TRAFFIC_BMP_LEN;
27 wlh[2] = entry->mac_handle;