svn commit: r250796 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Sun May 19 01:33:18 UTC 2013


Author: adrian
Date: Sun May 19 01:33:17 2013
New Revision: 250796
URL: http://svnweb.freebsd.org/changeset/base/250796

Log:
  More non-ATH_DEBUG build fixes.

Modified:
  head/sys/dev/ath/if_ath_tx.c

Modified: head/sys/dev/ath/if_ath_tx.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx.c	Sun May 19 00:53:06 2013	(r250795)
+++ head/sys/dev/ath/if_ath_tx.c	Sun May 19 01:33:17 2013	(r250796)
@@ -929,7 +929,6 @@ ath_tx_handoff_hw(struct ath_softc *sc, 
 static void
 ath_legacy_tx_dma_restart(struct ath_softc *sc, struct ath_txq *txq)
 {
-	struct ath_hal *ah = sc->sc_ah;
 	struct ath_buf *bf, *bf_last;
 
 	ATH_TXQ_LOCK_ASSERT(txq);
@@ -949,8 +948,10 @@ ath_legacy_tx_dma_restart(struct ath_sof
 	    bf_last,
 	    (uint32_t) bf->bf_daddr);
 
+#ifdef	ATH_DEBUG
 	if (sc->sc_debug & ATH_DEBUG_RESET)
 		ath_tx_dump(sc, txq);
+#endif
 
 	/*
 	 * This is called from a restart, so DMA is known to be
@@ -964,8 +965,9 @@ ath_legacy_tx_dma_restart(struct ath_sof
 	ath_hal_puttxbuf(sc->sc_ah, txq->axq_qnum, bf->bf_daddr);
 	txq->axq_flags |= ATH_TXQ_PUTRUNNING;
 
-	ath_hal_gettxdesclinkptr(ah, bf_last->bf_lastds, &txq->axq_link);
-	ath_hal_txstart(ah, txq->axq_qnum);
+	ath_hal_gettxdesclinkptr(sc->sc_ah, bf_last->bf_lastds,
+	    &txq->axq_link);
+	ath_hal_txstart(sc->sc_ah, txq->axq_qnum);
 }
 
 /*


More information about the svn-src-all mailing list