Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2012 18:57:41 +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: r239465 - head/sys/dev/ath
Message-ID:  <201208201857.q7KIvfRP078544@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Aug 20 18:57:41 2012
New Revision: 239465
URL: http://svn.freebsd.org/changeset/base/239465

Log:
  Fix a build issue when ATH_DEBUG isn't defined - just initialise and use
  qnum.

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	Mon Aug 20 18:45:16 2012	(r239464)
+++ head/sys/dev/ath/if_ath_tx.c	Mon Aug 20 18:57:41 2012	(r239465)
@@ -307,7 +307,7 @@ ath_tx_chaindesclist(struct ath_softc *s
 	uint32_t segLenList[4];
 	int numTxMaps = 1;
 	int isFirstDesc = 1;
-	int qnum = 0;	/* XXX update */
+	int qnum;
 
 	/*
 	 * XXX There's txdma and txdma_mgmt; the descriptor
@@ -366,11 +366,13 @@ ath_tx_chaindesclist(struct ath_softc *s
 		 * it may actually be pointing to the multicast software
 		 * TXQ id.  These must be fixed!
 		 */
+		qnum = bf->bf_state.bfs_txq->axq_qnum;
+
 		ath_hal_filltxdesc(ah, (struct ath_desc *) ds
 			, bufAddrList
 			, segLenList
 			, bf->bf_descid		/* XXX desc id */
-			, bf->bf_state.bfs_txq->axq_qnum	/* XXX multicast? */
+			, qnum
 			, isFirstDesc		/* first segment */
 			, i == bf->bf_nseg - 1	/* last segment */
 			, (struct ath_desc *) ds0	/* first descriptor */



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