diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-04-16 02:16:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-16 02:20:22 +0300 |
commit | 672e24772aeb45293c86f6176520d98b19cd48a1 (patch) | |
tree | 921c144f72266307c0e57a8f91752cb7a48e6dd0 /net | |
parent | 7dba92037baf3fa00b4880a31fd532542264994c (diff) | |
download | linux-672e24772aeb45293c86f6176520d98b19cd48a1.tar.xz |
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 <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/seg6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c index 75421a472d25..4c7e0a27fa9c 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) |