From: Colin Ian King Date: Sun, 13 Jun 2021 13:46:36 +0000 (+0100) Subject: ipv6: fib6: remove redundant initialization of variable err X-Git-Tag: v5.14-rc1~119^2~185 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5ec0705ffe891910e8e615b2efb1c2b292e917c;p=thirdparty%2Fkernel%2Flinux.git ipv6: fib6: remove redundant initialization of variable err 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index 8f9a83314de7d..40f3e4f9f33a2 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c @@ -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))