Skip to content

Commit

Permalink
ipv6: remove redundant assignment to variable err
Browse files Browse the repository at this point in the history
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.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Apr 15, 2020
1 parent 7dba920 commit 672e247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/seg6.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ static struct genl_family seg6_genl_family __ro_after_init = {

int __init seg6_init(void)
{
int err = -ENOMEM;
int err;

err = genl_register_family(&seg6_genl_family);
if (err)
Expand Down

0 comments on commit 672e247

Please sign in to comment.