diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index d6bc0e051043..6e6f516ba404 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -318,7 +318,7 @@ static void iwl5000_gain_computation(struct iwl_priv *priv, | |||
318 | (s32)average_noise[i])) / 1500; | 318 | (s32)average_noise[i])) / 1500; |
319 | /* bound gain by 2 bits value max, 3rd bit is sign */ | 319 | /* bound gain by 2 bits value max, 3rd bit is sign */ |
320 | data->delta_gain_code[i] = | 320 | data->delta_gain_code[i] = |
321 | min(abs(delta_g), CHAIN_NOISE_MAX_DELTA_GAIN_CODE); | 321 | min(abs(delta_g), (long) CHAIN_NOISE_MAX_DELTA_GAIN_CODE); |
322 | 322 | ||
323 | if (delta_g < 0) | 323 | if (delta_g < 0) |
324 | /* set negative sign */ | 324 | /* set negative sign */ |