diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-11-15 21:52:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-18 14:49:16 -0500 |
commit | bcd081a3aef1f7f3786067ae8dd26aaa1cf85153 (patch) | |
tree | b937ff0b1ac186cf67cc8a6520e3054c709ee0b4 /net | |
parent | fdcf77659c103388a67f40f2f8db239b57c1ce4e (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/ndisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1726 | &ndisc_ifinfo_sysctl_change); | 1726 | &ndisc_ifinfo_sysctl_change); |
1727 | if (err) | 1727 | if (err) |
1728 | goto out_unregister_pernet; | 1728 | goto out_unregister_pernet; |
1729 | #endif | ||
1730 | out: | 1729 | out: |
1730 | #endif | ||
1731 | return err; | 1731 | return err; |
1732 | 1732 | ||
1733 | #ifdef CONFIG_SYSCTL | 1733 | #ifdef CONFIG_SYSCTL |