Skip to content

Commit

Permalink
drivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
akpm00 authored and torvalds committed Dec 15, 2016
1 parent b6f8a92 commit b5fc8c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/intel/iwlwifi/dvm/calib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/*
Expand Down

0 comments on commit b5fc8c6

Please sign in to comment.