Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2012 01:35:12 +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: r236038 - head/sys/dev/ath
Message-ID:  <201205260135.q4Q1ZCNh044811@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat May 26 01:35:11 2012
New Revision: 236038
URL: http://svn.freebsd.org/changeset/base/236038

Log:
  Avoid using hard-coded numbers here.

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	Sat May 26 01:35:09 2012	(r236037)
+++ head/sys/dev/ath/if_ath_tx.c	Sat May 26 01:35:11 2012	(r236038)
@@ -3580,7 +3580,7 @@ ath_tx_aggr_comp_aggr(struct ath_softc *
 	int nframes = 0, nbad = 0, nf;
 	int pktlen;
 	/* XXX there's too much on the stack? */
-	struct ath_rc_series rc[4];
+	struct ath_rc_series rc[ATH_RC_NUM];
 	int txseq;
 
 	DPRINTF(sc, ATH_DEBUG_SW_TX_AGGR, "%s: called; hwq_depth=%d\n",



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