drivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 14 Dec 2016 23:06:15 +0000 (15:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Dec 2016 00:04:08 +0000 (16:04 -0800)
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>
Signed-off-by: Linus Torvalds <torvalds@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)
                        /*