From: Dan Carpenter Date: Wed, 5 Oct 2011 05:46:37 +0000 (+0300) Subject: ath5k: remove some unneeded error handling code X-Git-Tag: v3.2-rc1~129^2~83^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fb7475bde74814e5f9d0871590e00a6acb36a20;p=pandora-kernel.git 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 Reviewed-by: Bob Copeland Signed-off-by: John W. Linville --- Reading git-diff-tree failed