sctp: fix unused lable warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Mar 2018 14:14:56 +0000 (16:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Mar 2018 18:38:27 +0000 (14:38 -0400)
commit7ae665f132a62e67ccef1ef0994acba51abc2400
treef36f3f8feaa57d686f1a9af3bfb543f272a2ce8b
parent75498aa1aff5dfed0124557dfa0b6b2906b14fa6
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>
net/sctp/protocol.c