svn commit: r208643 - head/sys/dev/ath/ath_hal/ar5210

Rui Paulo rpaulo at FreeBSD.org
Sat May 29 16:11:51 UTC 2010


Author: rpaulo
Date: Sat May 29 16:11:51 2010
New Revision: 208643
URL: http://svn.freebsd.org/changeset/base/208643

Log:
  Due to the way HALDEBUG() is defined, we need to add curly brackets when
  using it as a sole if clause instruction.
  
  Submitted by:	Arnaud Lacombe <alc at FreeBSD.org>
  MFC after:	1 week

Modified:
  head/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c

Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c	Sat May 29 16:10:07 2010	(r208642)
+++ head/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c	Sat May 29 16:11:51 2010	(r208643)
@@ -526,9 +526,10 @@ ar5210PerCalibrationN(struct ath_hal *ah
 	/* AGC calibration (this was added to make the NF threshold check work) */
 	OS_REG_WRITE(ah, AR_PHY_AGCCTL,
 		 OS_REG_READ(ah, AR_PHY_AGCCTL) | AR_PHY_AGC_CAL);
-	if (!ath_hal_wait(ah, AR_PHY_AGCCTL, AR_PHY_AGC_CAL, 0))
+	if (!ath_hal_wait(ah, AR_PHY_AGCCTL, AR_PHY_AGC_CAL, 0)) {
 		HALDEBUG(ah, HAL_DEBUG_ANY, "%s: AGC calibration timeout\n",
 		    __func__);
+	}
 
 	/* Rewrite our AGC values we stored off earlier (return AGC to normal operation) */
 	OS_REG_WRITE(ah, 0x9858, reg9858);


More information about the svn-src-head mailing list