Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2013 01:33:17 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250796 - head/sys/dev/ath
Message-ID:  <201305190133.r4J1XH0J024564@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305190133.r4J1XH0J024564>