Revert "Wireless driver had a line trying to iterate past the end of an array. I just corrected it so it would build with optimizations."

This isn't needed with Rajko's fix.

This reverts commit 8fb8a09db8c331c8c77c6a17ebe1926ccb08e7e6.
This commit is contained in:
Jon Benson 2010-09-29 17:05:08 +10:00
parent c29bfbebb2
commit 66cc1bbacb

View File

@ -358,7 +358,7 @@ osl_pktfree_static(osl_t *osh, void *p, bool send)
{
int i;
for (i = 0; i < MAX_STATIC_PKT_NUM; i++)
for (i = 0; i < MAX_STATIC_PKT_NUM*2; 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]) )