From 8784a1dc59508d8f26c8b74d09f430c02ce7c06c Mon Sep 17 00:00:00 2001 From: rajkosto Date: Wed, 29 Sep 2010 08:47:30 +0200 Subject: [PATCH] fix gcc compiler warning in wifi driver --- drivers/net/wireless/bcm4329_204/linux_osl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/bcm4329_204/linux_osl.c b/drivers/net/wireless/bcm4329_204/linux_osl.c index 9d5f19c5..25a6a14a 100644 --- a/drivers/net/wireless/bcm4329_204/linux_osl.c +++ b/drivers/net/wireless/bcm4329_204/linux_osl.c @@ -360,7 +360,8 @@ osl_pktfree_static(osl_t *osh, void *p, bool send) for (i = 0; i < MAX_STATIC_PKT_NUM*2; i++) { - if (p == bcm_static_skb->skb_4k[i]) + if ( (i < MAX_STATIC_PKT_NUM && p == bcm_static_skb->skb_4k[i]) || + (i >= MAX_STATIC_PKT_NUM && p == bcm_static_skb->skb_8k[i-MAX_STATIC_PKT_NUM]) ) { down(&bcm_static_skb->osl_pkt_sem); bcm_static_skb->pkt_use[i] = 0;