diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-03-30 23:14:22 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-04-04 13:14:47 +0300 |
commit | 6603c5844a44fc58f0a3c9cbb57b35b75d7d86be (patch) | |
tree | 3f43c9d2bc95e508ea3d224a1a71bd701abaa3dc /drivers/net/wireless/intel/iwlegacy/4965.c | |
parent | d825db346270dbceef83b7b750dbc29f1d7dcc0e (diff) | |
download | linux-6603c5844a44fc58f0a3c9cbb57b35b75d7d86be.tar.xz |
iwlegacy: remove redundant assignment to *res
Currently 1 is being assigned to *res and then it is immediately
updated with the computed result. The first assignment is
redundant and can be removed.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/intel/iwlegacy/4965.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlegacy/4965.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/4965.c b/drivers/net/wireless/intel/iwlegacy/4965.c index ce4144a89217..a20b6c885047 100644 --- a/drivers/net/wireless/intel/iwlegacy/4965.c +++ b/drivers/net/wireless/intel/iwlegacy/4965.c @@ -577,7 +577,6 @@ il4965_math_div_round(s32 num, s32 denom, s32 * res) sign = -sign; denom = -denom; } - *res = 1; *res = ((num * 2 + denom) / (denom * 2)) * sign; return 1; |