mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 11:21:33 +00:00
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>
This commit is contained in:
parent
d825db3462
commit
6603c5844a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user