drivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression
authorAndrew Morton <[email protected]>
Wed, 14 Dec 2016 23:06:15 +0000 (15:06 -0800)
committerLinus Torvalds <[email protected]>
Thu, 15 Dec 2016 00:04:08 +0000 (16:04 -0800)
This cast is no longer needed.

Cc: Johannes Berg <[email protected]>
Cc: Emmanuel Grumbach <[email protected]>
Cc: Intel Linux Wireless <[email protected]>
Cc: Kalle Valo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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)
                        /*