]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: remove redundant store to value after addition
authorColin Ian King <colin.i.king@gmail.com>
Tue, 28 Jun 2022 14:54:06 +0000 (15:54 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Jun 2022 03:42:42 +0000 (20:42 -0700)
commit80517598283123f632ea7eda03435c98bffe6e52
tree6fa9bfd8b41108df27bf47716dde181cb7550767
parent435b942deb9b9340790cb7610e7b8b644a42d10d
ipv6: remove redundant store to value after addition

There is no need to store the result of the addition back to variable count
after the addition. The store is redundant, replace += with just +

Cleans up clang scan build warning:
warning: Although the value stored to 'count' is used in the enclosing
expression, the value is never actually read from 'count'

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220628145406.183527-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/route.c