Skip to content

Commit

Permalink
ipv6: fib6: remove redundant initialization of 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, the
assignment 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 Jun 14, 2021
1 parent ce4f8af commit b5ec070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/fib6_rules.c
Original file line number Diff line number Diff line change
@@ -467,7 +467,7 @@ static const struct fib_rules_ops __net_initconst fib6_rules_ops_template = {
static int __net_init fib6_rules_net_init(struct net *net)
{
struct fib_rules_ops *ops;
int err = -ENOMEM;
int err;

ops = fib_rules_register(&fib6_rules_ops_template, net);
if (IS_ERR(ops))

0 comments on commit b5ec070

Please sign in to comment.