mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
ath: move spin_lock_bh to spin_lock in tasklet
as you are already in a tasklet, it is unnecessary to call spin_lock_bh, because softirq already disable BH. Signed-off-by: Zhiwei Jiang <qq282012236@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
cd98625b3e
commit
b789f333d7
1 changed files with 3 additions and 3 deletions
|
|
@ -574,12 +574,12 @@ void ath9k_tx_failed_tasklet(unsigned long data)
|
|||
{
|
||||
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *)data;
|
||||
|
||||
spin_lock_bh(&priv->tx.tx_lock);
|
||||
spin_lock(&priv->tx.tx_lock);
|
||||
if (priv->tx.flags & ATH9K_HTC_OP_TX_DRAIN) {
|
||||
spin_unlock_bh(&priv->tx.tx_lock);
|
||||
spin_unlock(&priv->tx.tx_lock);
|
||||
return;
|
||||
}
|
||||
spin_unlock_bh(&priv->tx.tx_lock);
|
||||
spin_unlock(&priv->tx.tx_lock);
|
||||
|
||||
ath9k_htc_tx_drainq(priv, &priv->tx.tx_failed);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue