diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-03-28 10:14:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-29 14:38:27 -0400 |
commit | 7ae665f132a62e67ccef1ef0994acba51abc2400 (patch) | |
tree | f36f3f8feaa57d686f1a9af3bfb543f272a2ce8b | |
parent | 75498aa1aff5dfed0124557dfa0b6b2906b14fa6 (diff) |
sctp: fix unused lable warning
The proc file cleanup left a label possibly unused:
net/sctp/protocol.c: In function 'sctp_defaults_init':
net/sctp/protocol.c:1304:1: error: label 'err_init_proc' defined but not used [-Werror=unused-label]
This adds an #ifdef around it to match the respective 'goto'.
Fixes: d47d08c8ca05 ("sctp: use proc_remove_subtree()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/protocol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 84a09f599131..a24cde236330 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -1258,8 +1258,10 @@ static int __net_init sctp_defaults_init(struct net *net) | |||
1258 | 1258 | ||
1259 | return 0; | 1259 | return 0; |
1260 | 1260 | ||
1261 | #ifdef CONFIG_PROC_FS | ||
1261 | err_init_proc: | 1262 | err_init_proc: |
1262 | cleanup_sctp_mibs(net); | 1263 | cleanup_sctp_mibs(net); |
1264 | #endif | ||
1263 | err_init_mibs: | 1265 | err_init_mibs: |
1264 | sctp_sysctl_net_unregister(net); | 1266 | sctp_sysctl_net_unregister(net); |
1265 | err_sysctl_register: | 1267 | err_sysctl_register: |