]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: remove redundant assignment to variable err
authorColin Ian King <colin.king@canonical.com>
Fri, 11 Sep 2020 10:35:09 +0000 (11:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Sep 2020 21:48:25 +0000 (14:48 -0700)
commitccf043937d1c94f9db9a366590e50010c307fd6f
tree1e3e431e51191992311282bc36b9fda3d62307e8
parent0528308338342b1b88f090ea0e05be8691e34ef1
ipv6: remove redundant assignment to variable err

The variable err is being initialized with a value that is never read and
it is being updated later with a new value. The initialization is redundant
and can be removed.  Also re-order variable declarations in reverse
Christmas tree ordering.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c