Skip to content

Commit bcd081a

Browse files
Fabio Estevamdavem330
authored andcommitted
net: ipv6: ndisc: Fix warning when CONFIG_SYSCTL=n
When CONFIG_SYSCTL=n the following build warning happens: net/ipv6/ndisc.c:1730:1: warning: label 'out' defined but not used [-Wunused-label] The 'out' label is only used when CONFIG_SYSCTL=y, so move it inside the 'ifdef CONFIG_SYSCTL' block. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fdcf776 commit bcd081a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/ndisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,8 +1726,8 @@ int __init ndisc_init(void)
17261726
&ndisc_ifinfo_sysctl_change);
17271727
if (err)
17281728
goto out_unregister_pernet;
1729-
#endif
17301729
out:
1730+
#endif
17311731
return err;
17321732

17331733
#ifdef CONFIG_SYSCTL

0 commit comments

Comments
 (0)