mac80211: Update to version 5.5.19
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / brcm / 120-v5.6-brcmfmac-Remove-always-false-idx-0-statement.patch
1 From 627b0d094240c38393b2f2d40626c33a8fff6103 Mon Sep 17 00:00:00 2001
2 From: yuehaibing <yuehaibing@huawei.com>
3 Date: Wed, 8 Jan 2020 21:57:48 +0800
4 Subject: [PATCH] brcmfmac: Remove always false 'idx < 0' statement
5
6 idx is declared as u32, it will never less than 0.
7
8 Signed-off-by: yuehaibing <yuehaibing@huawei.com>
9 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
10 ---
11 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
15 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
16 @@ -365,7 +365,7 @@ brcmf_msgbuf_get_pktid(struct device *de
17 struct brcmf_msgbuf_pktid *pktid;
18 struct sk_buff *skb;
19
20 - if (idx < 0 || idx >= pktids->array_size) {
21 + if (idx >= pktids->array_size) {
22 brcmf_err("Invalid packet id %d (max %d)\n", idx,
23 pktids->array_size);
24 return NULL;