]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 9 Feb 2016 23:14:05 +0000 (10:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 11 Feb 2016 04:44:04 +0000 (15:44 +1100)
This cast is no longer needed.

Cc: Johannes Berg <johannes.berg@intel.com>
Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Cc: Intel Linux Wireless <linuxwifi@intel.com>
Cc: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/net/wireless/intel/iwlwifi/dvm/calib.c

index e9cef9de9ed85fffbf02fd71219ffd57323e4a9a..c96f9b1d948ab3662c0e9db5f8a7752b47b54265 100644 (file)
@@ -900,8 +900,7 @@ static void iwlagn_gain_computation(struct iwl_priv *priv,
 
                /* bound gain by 2 bits value max, 3rd bit is sign */
                data->delta_gain_code[i] =
-                       min(abs(delta_g),
-                       (s32) CHAIN_NOISE_MAX_DELTA_GAIN_CODE);
+                       min(abs(delta_g), CHAIN_NOISE_MAX_DELTA_GAIN_CODE);
 
                if (delta_g < 0)
                        /*