summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-08-11 16:17:33 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2008-08-13 16:22:01 +1000
commitb254c26b414254e721a3c69c708bc7dd50b0efb9 (patch)
treebdfaa8ae07da80385d96f5fa033132e6147882e1
parentd3e46dda7cfd5553753f29e1eae5835a6aaf438e (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.c5
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;