From: Fabio Estevam Date: Sat, 16 Nov 2013 02:52:08 +0000 (-0200) Subject: net: ipv6: ndisc: Fix warning when CONFIG_SYSCTL=n X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcd081a3aef1f7f3786067ae8dd26aaa1cf85153;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index f8a55ff1971b..3512177deb4d 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -1726,8 +1726,8 @@ int __init ndisc_init(void) &ndisc_ifinfo_sysctl_change); if (err) goto out_unregister_pernet; -#endif out: +#endif return err; #ifdef CONFIG_SYSCTL