aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-11-16 01:10:51 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-18 17:09:12 -0500
commit7c82a186b48882c2a21a3eda25f3dab2d6040a09 (patch)
tree31f783e037f8c74c3be9d8262e8181a92946eb2e /drivers
parentc6089ccc22377bcbf055ece6a45b931a02630824 (diff)
ath9k: Remove a few unused variables
axq_linkbuf, axq_aggr_depth, axq_lastdsWithCTS and axq_gatingds are unused. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h10
-rw-r--r--drivers/net/wireless/ath/ath9k/xmit.c13
2 files changed, 0 insertions, 23 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index d9bcc3abb425..2a40fa2cd914 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -198,18 +198,8 @@ struct ath_txq {
198 struct list_head axq_q; 198 struct list_head axq_q;
199 spinlock_t axq_lock; 199 spinlock_t axq_lock;
200 u32 axq_depth; 200 u32 axq_depth;
201 u8 axq_aggr_depth;
202 bool stopped; 201 bool stopped;
203 bool axq_tx_inprogress; 202 bool axq_tx_inprogress;
204 struct ath_buf *axq_linkbuf;
205
206 /* first desc of the last descriptor that contains CTS */
207 struct ath_desc *axq_lastdsWithCTS;
208
209 /* final desc of the gating desc that determines whether
210 lastdsWithCTS has been DMA'ed or not */
211 struct ath_desc *axq_gatingds;
212
213 struct list_head axq_acq; 203 struct list_head axq_acq;
214}; 204};
215 205
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index 2db0fa878c26..745d91995d78 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -699,7 +699,6 @@ static void ath_tx_sched_aggr(struct ath_softc *sc, struct ath_txq *txq,
699 /* anchor last desc of aggregate */ 699 /* anchor last desc of aggregate */
700 ath9k_hw_set11n_aggr_last(sc->sc_ah, bf->bf_lastbf->bf_desc); 700 ath9k_hw_set11n_aggr_last(sc->sc_ah, bf->bf_lastbf->bf_desc);
701 701
702 txq->axq_aggr_depth++;
703 ath_tx_txqaddbuf(sc, txq, &bf_q); 702 ath_tx_txqaddbuf(sc, txq, &bf_q);
704 TX_STAT_INC(txq->axq_qnum, a_aggr); 703 TX_STAT_INC(txq->axq_qnum, a_aggr);
705 704
@@ -875,8 +874,6 @@ struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype)
875 INIT_LIST_HEAD(&txq->axq_acq); 874 INIT_LIST_HEAD(&txq->axq_acq);
876 spin_lock_init(&txq->axq_lock); 875 spin_lock_init(&txq->axq_lock);
877 txq->axq_depth = 0; 876 txq->axq_depth = 0;
878 txq->axq_aggr_depth = 0;
879 txq->axq_linkbuf = NULL;
880 txq->axq_tx_inprogress = false; 877 txq->axq_tx_inprogress = false;
881 sc->tx.txqsetup |= 1<<qnum; 878 sc->tx.txqsetup |= 1<<qnum;
882 } 879 }
@@ -1011,7 +1008,6 @@ void ath_draintxq(struct ath_softc *sc, struct ath_txq *txq, bool retry_tx)
1011 1008
1012 if (list_empty(&txq->axq_q)) { 1009 if (list_empty(&txq->axq_q)) {
1013 txq->axq_link = NULL; 1010 txq->axq_link = NULL;
1014 txq->axq_linkbuf = NULL;
1015 spin_unlock_bh(&txq->axq_lock); 1011 spin_unlock_bh(&txq->axq_lock);
1016 break; 1012 break;
1017 } 1013 }
@@ -1196,7 +1192,6 @@ static void ath_tx_txqaddbuf(struct ath_softc *sc, struct ath_txq *txq,
1196 1192
1197 list_splice_tail_init(head, &txq->axq_q); 1193 list_splice_tail_init(head, &txq->axq_q);
1198 txq->axq_depth++; 1194 txq->axq_depth++;
1199 txq->axq_linkbuf = list_entry(txq->axq_q.prev, struct ath_buf, list);
1200 1195
1201 ath_print(common, ATH_DBG_QUEUE, 1196 ath_print(common, ATH_DBG_QUEUE,
1202 "qnum: %d, txq depth: %d\n", txq->axq_qnum, txq->axq_depth); 1197 "qnum: %d, txq depth: %d\n", txq->axq_qnum, txq->axq_depth);
@@ -1965,7 +1960,6 @@ static void ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)
1965 spin_lock_bh(&txq->axq_lock); 1960 spin_lock_bh(&txq->axq_lock);
1966 if (list_empty(&txq->axq_q)) { 1961 if (list_empty(&txq->axq_q)) {
1967 txq->axq_link = NULL; 1962 txq->axq_link = NULL;
1968 txq->axq_linkbuf = NULL;
1969 spin_unlock_bh(&txq->axq_lock); 1963 spin_unlock_bh(&txq->axq_lock);
1970 break; 1964 break;
1971 } 1965 }
@@ -1999,10 +1993,6 @@ static void ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)
1999 spin_unlock_bh(&txq->axq_lock); 1993 spin_unlock_bh(&txq->axq_lock);
2000 break; 1994 break;
2001 } 1995 }
2002 if (bf->bf_desc == txq->axq_lastdsWithCTS)
2003 txq->axq_lastdsWithCTS = NULL;
2004 if (ds == txq->axq_gatingds)
2005 txq->axq_gatingds = NULL;
2006 1996
2007 /* 1997 /*
2008 * Remove ath_buf's of the same transmit unit from txq, 1998 * Remove ath_buf's of the same transmit unit from txq,
@@ -2016,9 +2006,6 @@ static void ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)
2016 &txq->axq_q, lastbf->list.prev); 2006 &txq->axq_q, lastbf->list.prev);
2017 2007
2018 txq->axq_depth--; 2008 txq->axq_depth--;
2019 if (bf_isaggr(bf))
2020 txq->axq_aggr_depth--;
2021
2022 txok = (ds->ds_txstat.ts_status == 0); 2009 txok = (ds->ds_txstat.ts_status == 0);
2023 txq->axq_tx_inprogress = false; 2010 txq->axq_tx_inprogress = false;
2024 spin_unlock_bh(&txq->axq_lock); 2011 spin_unlock_bh(&txq->axq_lock);