summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuehaibing <yuehaibing@huawei.com>2020-01-08 16:57:48 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-01-26 18:43:28 +0300
commit627b0d094240c38393b2f2d40626c33a8fff6103 (patch)
treeb50c64427ee7528e4a78d918e3966484369b2360
parent6b6c150b8464e91af26be805f88d5e58c6d626ae (diff)
downloadlinux-627b0d094240c38393b2f2d40626c33a8fff6103.tar.xz
brcmfmac: Remove always false 'idx < 0' statement
idx is declared as u32, it will never less than 0. Signed-off-by: yuehaibing <yuehaibing@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
index e3dd8623be4e..8bb4f1fa790e 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
@@ -365,7 +365,7 @@ brcmf_msgbuf_get_pktid(struct device *dev, struct brcmf_msgbuf_pktids *pktids,
struct brcmf_msgbuf_pktid *pktid;
struct sk_buff *skb;
- if (idx < 0 || idx >= pktids->array_size) {
+ if (idx >= pktids->array_size) {
brcmf_err("Invalid packet id %d (max %d)\n", idx,
pktids->array_size);
return NULL;