ath9k: fix tx queue sparse complaint
This fixes this rant from sparse: CHECK drivers/net/wireless/ath/ath9k/xmit.c drivers/net/wireless/ath/ath9k/xmit.c:107:13: warning: context imbalance in 'ath_txq_lock' - wrong count at exit drivers/net/wireless/ath/ath9k/xmit.c:112:13: warning: context imbalance in 'ath_txq_unlock' - unexpected unlock drivers/net/wireless/ath/ath9k/xmit.c:123:30: warning: context imbalance in 'ath_txq_unlock_complete' - unexpected unlock CC [M] drivers/net/wireless/ath/ath9k/xmit. Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
e01ff34edc
commit
1512a48656
@@ -105,16 +105,19 @@ static int ath_max_4ms_framelen[4][32] = {
|
|||||||
/*********************/
|
/*********************/
|
||||||
|
|
||||||
static void ath_txq_lock(struct ath_softc *sc, struct ath_txq *txq)
|
static void ath_txq_lock(struct ath_softc *sc, struct ath_txq *txq)
|
||||||
|
__acquires(&txq->axq_lock)
|
||||||
{
|
{
|
||||||
spin_lock_bh(&txq->axq_lock);
|
spin_lock_bh(&txq->axq_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ath_txq_unlock(struct ath_softc *sc, struct ath_txq *txq)
|
static void ath_txq_unlock(struct ath_softc *sc, struct ath_txq *txq)
|
||||||
|
__releases(&txq->axq_lock)
|
||||||
{
|
{
|
||||||
spin_unlock_bh(&txq->axq_lock);
|
spin_unlock_bh(&txq->axq_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ath_txq_unlock_complete(struct ath_softc *sc, struct ath_txq *txq)
|
static void ath_txq_unlock_complete(struct ath_softc *sc, struct ath_txq *txq)
|
||||||
|
__releases(&txq->axq_lock)
|
||||||
{
|
{
|
||||||
struct sk_buff_head q;
|
struct sk_buff_head q;
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
|
Reference in New Issue
Block a user