From: Colin Ian King Date: Wed, 15 Apr 2020 23:16:30 +0000 (+0100) Subject: ipv6: remove redundant assignment to variable err X-Git-Tag: v5.10.7~2790^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=672e24772aeb45293c86f6176520d98b19cd48a1;p=platform%2Fkernel%2Flinux-rpi.git 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. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Signed-off-by: David S. Miller --- diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c index 75421a4..4c7e0a27 100644 --- a/net/ipv6/seg6.c +++ b/net/ipv6/seg6.c @@ -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)