Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 2010 20:36:31 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r209012 - stable/8/sys/dev/ath/ath_hal/ar5210
Message-ID:  <201006102036.o5AKaVVY058659@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Thu Jun 10 20:36:30 2010
New Revision: 209012
URL: http://svn.freebsd.org/changeset/base/209012

Log:
  MFC r208643:
   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@NetBSD.org>
  Approved by:	re (kensmith)

Modified:
  stable/8/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/geom/sched/   (props changed)

Modified: stable/8/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c
==============================================================================
--- stable/8/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c	Thu Jun 10 20:34:22 2010	(r209011)
+++ stable/8/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c	Thu Jun 10 20:36:30 2010	(r209012)
@@ -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);



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