rt2x00: do not flush empty queue

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Stanislaw Gruszka 2017-01-06 14:05:17 +01:00 committed by Kalle Valo
parent 1701221696
commit 5158324818

View File

@ -743,6 +743,7 @@ void rt2x00mac_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
return; return;
tx_queue_for_each(rt2x00dev, queue) tx_queue_for_each(rt2x00dev, queue)
if (!rt2x00queue_empty(queue))
rt2x00queue_flush_queue(queue, drop); rt2x00queue_flush_queue(queue, drop);
} }
EXPORT_SYMBOL_GPL(rt2x00mac_flush); EXPORT_SYMBOL_GPL(rt2x00mac_flush);