linux/drivers/net/wireless/ath/ath5k
Dan Carpenter 8fb7475bde ath5k: remove some unneeded error handling code
th5k_hw_setup_tx_queue() returns a valid offset into the ah->ah_txq[]
array.  The ah->ah_txq[] and the ah->txqs[] array are the same size.
Both have AR5K_NUM_TX_QUEUES elements.  So this error handling code
will never trigger.

Also it's wrong.  The call to ath5k_hw_release_tx_queue() with a qnum
of AR5K_NUM_TX_QUEUES or more will just trigger a WARN_ON() and
return.  Or if it missed the WARN_ON(), it would just corrupt some
memory and return.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-10-11 16:41:09 -04:00
..
Kconfig ath5k: use tracing for packet tx/rx dump 2011-01-28 15:44:27 -05:00
Makefile ath5k: Move mac80211 functions into new file 2011-01-04 14:35:11 -05:00
ahb.c ath5k: remove last references to "softc" 2011-08-08 16:04:14 -04:00
ani.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
ani.h ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
ath5k.h ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
attach.c ath5k: remove last references to "softc" 2011-08-08 16:04:14 -04:00
base.c ath5k: remove some unneeded error handling code 2011-10-11 16:41:09 -04:00
base.h ath5k: remove last references to "softc" 2011-08-08 16:04:14 -04:00
caps.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
debug.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
debug.h ath5k: merge ath5k_hw and ath5k_softc 2011-07-20 15:04:33 -04:00
desc.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
desc.h ath5k: fix typos, bad comment formatting and GHz in place of MHz 2011-07-11 15:02:16 -04:00
dma.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
eeprom.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
eeprom.h ath5k: fix typos, bad comment formatting and GHz in place of MHz 2011-07-11 15:02:16 -04:00
gpio.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
initvals.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
led.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
mac80211-ops.c mac80211: pass vif param to conf_tx() callback 2011-10-03 15:22:41 -04:00
pci.c ath5k: remove last references to "softc" 2011-08-08 16:04:14 -04:00
pcu.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
phy.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
qcu.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
reg.h ath5k: fix typos, bad comment formatting and GHz in place of MHz 2011-07-11 15:02:16 -04:00
reset.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
rfbuffer.h ath5k: replace spaces with tabs as suggested by checkpatch.pl 2011-07-08 11:44:28 -04:00
rfgain.h ath5k: fix typos, bad comment formatting and GHz in place of MHz 2011-07-11 15:02:16 -04:00
rfkill.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
sysfs.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
trace.h ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00