Commit 627b0d09 authored by yuehaibing's avatar yuehaibing Committed by Kalle Valo

brcmfmac: Remove always false 'idx < 0' statement

idx is declared as u32, it will never less than 0.
Signed-off-by: default avataryuehaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 6b6c150b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment