[Midnightbsd-cvs] src [7232] trunk/sys/dev/ath: init some variables so we can silence clang

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Aug 11 21:11:49 EDT 2015


Revision: 7232
          http://svnweb.midnightbsd.org/src/?rev=7232
Author:   laffer1
Date:     2015-08-11 21:11:48 -0400 (Tue, 11 Aug 2015)
Log Message:
-----------
init some variables so we can silence clang

Modified Paths:
--------------
    trunk/sys/dev/ath/ath_hal/ah_eeprom_9287.c
    trunk/sys/dev/ath/ath_hal/ah_eeprom_v4k.c
    trunk/sys/dev/ath/if_ath.c

Modified: trunk/sys/dev/ath/ath_hal/ah_eeprom_9287.c
===================================================================
--- trunk/sys/dev/ath/ath_hal/ah_eeprom_9287.c	2015-08-12 00:40:39 UTC (rev 7231)
+++ trunk/sys/dev/ath/ath_hal/ah_eeprom_9287.c	2015-08-12 01:11:48 UTC (rev 7232)
@@ -292,7 +292,7 @@
 {
 #define	NW(a)	(sizeof(a) / sizeof(uint16_t))
 	HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom;
-	uint16_t *eep_data, magic;
+	uint16_t *eep_data, magic = 0;
 	HAL_BOOL need_swap;
 	u_int w, off, len;
 	uint32_t sum;

Modified: trunk/sys/dev/ath/ath_hal/ah_eeprom_v4k.c
===================================================================
--- trunk/sys/dev/ath/ath_hal/ah_eeprom_v4k.c	2015-08-12 00:40:39 UTC (rev 7231)
+++ trunk/sys/dev/ath/ath_hal/ah_eeprom_v4k.c	2015-08-12 01:11:48 UTC (rev 7232)
@@ -281,7 +281,7 @@
 {
 #define	NW(a)	(sizeof(a) / sizeof(uint16_t))
 	HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom;
-	uint16_t *eep_data, magic;
+	uint16_t *eep_data, magic = 0;
 	HAL_BOOL need_swap;
 	u_int w, off, len;
 	uint32_t sum;

Modified: trunk/sys/dev/ath/if_ath.c
===================================================================
--- trunk/sys/dev/ath/if_ath.c	2015-08-12 00:40:39 UTC (rev 7231)
+++ trunk/sys/dev/ath/if_ath.c	2015-08-12 01:11:48 UTC (rev 7232)
@@ -4594,7 +4594,7 @@
 	struct ath_hal *ah = sc->sc_ah;
 	struct ifnet *ifp = sc->sc_ifp;
 	struct ieee80211com *ic = ifp->if_l2com;
-	HAL_BOOL longCal, isCalDone;
+	HAL_BOOL longCal, isCalDone = AH_FALSE;
 	HAL_BOOL aniCal, shortCal = AH_FALSE;
 	int nextcal;
 



More information about the Midnightbsd-cvs mailing list