Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
David S. Miller
672e2477 7dba9203

+1 -1
+1 -1
net/ipv6/seg6.c
··· 434 434 435 435 int __init seg6_init(void) 436 436 { 437 - int err = -ENOMEM; 437 + int err; 438 438 439 439 err = genl_register_family(&seg6_genl_family); 440 440 if (err)