diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-05-29 16:11:51 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-05-29 16:11:51 +0000 |
commit | 87ed7ad6eccce967f3c26f6d423eb2ec6e29b40b (patch) | |
tree | f6f9b23713b0452f1480a001119845fa3092a9df /sys/dev/ath | |
parent | 5ba9bca748c58368609e4d5f6d1524aba8c613df (diff) | |
download | FreeBSD-src-87ed7ad6eccce967f3c26f6d423eb2ec6e29b40b.zip FreeBSD-src-87ed7ad6eccce967f3c26f6d423eb2ec6e29b40b.tar.gz |
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@FreeBSD.org>
MFC after: 1 week
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5210/ar5210_reset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c b/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c index 43e97ed..a798f84 100644 --- a/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c +++ b/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c @@ -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); |