From: Christian Lamparter Date: Mon, 13 Sep 2010 17:47:50 +0000 (+0200) Subject: carl9170 firmware: remove trailing semicolon from #define X-Git-Tag: 1.8.8.2~4 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=d4e37f3fb33cb7ec913f1e76f899196ffe158aa5;p=carl9170fw.git carl9170 firmware: remove trailing semicolon from #define Signed-off-by: Christian Lamparter --- diff --git a/carlfw/src/rf.c b/carlfw/src/rf.c index 703bd42..7bcff27 100644 --- a/carlfw/src/rf.c +++ b/carlfw/src/rf.c @@ -136,7 +136,7 @@ static uint32_t AGC_calibration(uint32_t loop) uint32_t wrdata; uint32_t ret; -#define AGC_CAL_NF (AR9170_PHY_AGC_CONTROL_CAL | AR9170_PHY_AGC_CONTROL_NF); +#define AGC_CAL_NF (AR9170_PHY_AGC_CONTROL_CAL | AR9170_PHY_AGC_CONTROL_NF) wrdata = get_async(AR9170_PHY_REG_AGC_CONTROL) | AGC_CAL_NF; set(AR9170_PHY_REG_AGC_CONTROL, wrdata); @@ -144,14 +144,10 @@ static uint32_t AGC_calibration(uint32_t loop) ret = get_async(AR9170_PHY_REG_AGC_CONTROL) & AGC_CAL_NF; /* sitesurvey : 100 ms / current connected 200 ms */ - while (loop && ret != 0x0) { - ret = get_async(AR9170_PHY_REG_AGC_CONTROL) & AGC_CAL_NF; - - if (ret == 0) - break; - + while ((ret != 0) && loop--) { udelay(100); - loop--; + + ret = get_async(AR9170_PHY_REG_AGC_CONTROL) & AGC_CAL_NF; } /* return the AGC/Noise calibration state to the driver */