ath5k: fix off-by-one in gpio checks
authorBob Copeland <me@bobcopeland.com>
Thu, 1 Jan 2009 20:01:45 +0000 (15:01 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 20:59:45 +0000 (15:59 -0500)
commit7d969204882882585336b0fa19ad4587d8fb15a2
treef300de1b35bf0cca9d77a9896d9fd9227e7382d9
parent63649b6cf0a964582af2b4d4734e28ca90ec8f5c
ath5k: fix off-by-one in gpio checks

Sanity checks against AR5K_NUM_GPIO were all broken.  This doesn't
currently cause any problems since we only use the first four gpios.

Changes-licensed-under: ISC

Reported-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/gpio.c