ath9k: optimize ath_drain_all_txq
authorFelix Fietkau <nbd@openwrt.org>
Mon, 11 Nov 2013 21:23:34 +0000 (22:23 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Dec 2013 19:24:59 +0000 (14:24 -0500)
commit10ffb6a77e617a8f5ded84b504550759ec4a8df0
tree6d0d2ed1a3ea82dda9367eb09b16119cc3747319
parentbf3dac5a6fcf33a80c99e7b7406f8e5af99e2a70
ath9k: optimize ath_drain_all_txq

If the software has processed all packets, checking the hardware queue
is unnecessary.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c