Skip to content

Commit

Permalink
net: ipv6: ndisc: Fix warning when CONFIG_SYSCTL=n
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Fabio Estevam authored and davem330 committed Nov 18, 2013
1 parent fdcf776 commit bcd081a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcd081a

Please sign in to comment.