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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to