summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/xmit.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-10-05 08:46:37 +0300
committerJohn W. Linville <linville@tuxdriver.com>2011-10-11 16:41:09 -0400
commit8fb7475bde74814e5f9d0871590e00a6acb36a20 (patch)
tree78545c895b288dce13188e2347abc2aa0299a20f /drivers/net/wireless/ath/ath9k/xmit.c
parent28a1bcdb57d50f3038a255741ecc83e391e5282e (diff)
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
0 files changed, 0 insertions, 0 deletions