diff options
author | Dan Carpenter | 2010-03-28 13:48:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2010-05-11 20:35:43 +0200 |
commit | 263974d918474d17b5963d0b22fbc81729ce0479 (patch) | |
tree | 9925d12217d6f4ee161740292a86d61a8d228584 /drivers/staging/otus | |
parent | Staging: otus: Remove mix of tabs and spaces with just tabs in ioctl.c (diff) | |
download | kernel-qcow2-linux-263974d918474d17b5963d0b22fbc81729ce0479.tar.gz kernel-qcow2-linux-263974d918474d17b5963d0b22fbc81729ce0479.tar.xz kernel-qcow2-linux-263974d918474d17b5963d0b22fbc81729ce0479.zip |
Staging: otus: hpani: using the wrong variable
We're updating the "HpPriv->ani" array here so we should use that to
determine the end of the for loop. "HpPriv->ani" has 50 elements and
"wd->regulationTable.allowChannel" has 59 elements.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/otus')
-rw-r--r-- | drivers/staging/otus/hal/hpani.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/otus/hal/hpani.c b/drivers/staging/otus/hal/hpani.c index 0afecd8c2de4..d401504f2004 100644 --- a/drivers/staging/otus/hal/hpani.c +++ b/drivers/staging/otus/hal/hpani.c @@ -96,7 +96,7 @@ void zfHpAniAttach(zdev_t* dev) HpPriv->hasHwPhyCounters = 1; memset((char *)&HpPriv->ani, 0, sizeof(HpPriv->ani)); - for (i = 0; i < N(wd->regulationTable.allowChannel); i++) + for (i = 0; i < ARRAY_SIZE(HpPriv->ani); i++) { /* New ANI stuff */ HpPriv->ani[i].ofdmTrigHigh = ZM_HAL_ANI_OFDM_TRIG_HIGH; |