svn commit: r239504 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Tue Aug 21 16:44:26 UTC 2012
Author: adrian
Date: Tue Aug 21 16:44:25 2012
New Revision: 239504
URL: http://svn.freebsd.org/changeset/base/239504
Log:
Initialise an uninitialised variable.
GCC on -9 didn't pick this up; clang did.
Submitted by: David Wolfskill
Modified:
head/sys/dev/ath/if_ath_tx_edma.c
Modified: head/sys/dev/ath/if_ath_tx_edma.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx_edma.c Tue Aug 21 16:35:14 2012 (r239503)
+++ head/sys/dev/ath/if_ath_tx_edma.c Tue Aug 21 16:44:25 2012 (r239504)
@@ -427,7 +427,7 @@ ath_edma_tx_proc(void *arg, int npending
struct ath_txq *txq;
struct ath_buf *bf;
struct ieee80211_node *ni;
- int nacked;
+ int nacked = 0;
DPRINTF(sc, ATH_DEBUG_TX_PROC, "%s: called, npending=%d\n",
__func__, npending);
More information about the svn-src-all
mailing list