mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 09:41:54 +09:00
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>
This commit is contained in:
committed by
David S. Miller
parent
7dba92037b
commit
672e24772a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user