diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-08-11 16:17:33 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-08-12 17:28:35 +1000 |
commit | de91348b96cd1fdbea49731d84bdc82675418774 (patch) | |
tree | b907ec09ac28d55440e90ff4c383031af17f8356 | |
parent | c07c27be7ecfd76e3e909fe5ab05e796b378f1cf (diff) |
ath9k: work around gcc ICE again
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index bde162f128ab..ac2a08795e07 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c @@ -5017,7 +5017,10 @@ static void ath9k_hw_spur_mitigate(struct ath_hal *ah, for (i = 0; i < 123; i++) { if ((cur_vit_mask > lower) && (cur_vit_mask < upper)) { - if ((abs(cur_vit_mask - bin)) < 75) + /* workaround for gcc bug #37014 */ + volatile int tmp = abs(cur_vit_mask - bin); + + if (tmp < 75) mask_amt = 1; else mask_amt = 0; |