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-11 16:17:33 +1000 |
commit | efc8b82b89e697b54707da0b855d066b2b99fe79 (patch) | |
tree | b3af4bc4c5e67b43065b299dc78df126371e119c | |
parent | 7558009fe9f2805f8bdd2541bbdb2899480f46db (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; |