aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-05-01 17:15:02 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-05-06 17:54:52 -0400
commit12dd7ecf2323c572b1d302707eada4900848dced (patch)
treec4eb149d9fa1e891e2653d8d077d8a0b49cc7980 /fs/lockd
parent4cb57e3032d4e4bf5e97780e9907da7282b02b0c (diff)
lockd: avoid warning when CONFIG_SYSCTL undefined
When building without CONFIG_SYSCTL, the compiler saw an unused label. This moves the label into the #ifdef it is used under. fs/lockd/svc.c: In function ‘init_nlm’: fs/lockd/svc.c:626:1: warning: label ‘err_sysctl’ defined but not used [-Wunused-label] Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c
index 6bf06a07f3e0..2b431f7266c3 100644
--- a/fs/lockd/svc.c
+++ b/fs/lockd/svc.c
@@ -622,8 +622,8 @@ static int __init init_nlm(void)
622err_pernet: 622err_pernet:
623#ifdef CONFIG_SYSCTL 623#ifdef CONFIG_SYSCTL
624 unregister_sysctl_table(nlm_sysctl_table); 624 unregister_sysctl_table(nlm_sysctl_table);
625#endif
626err_sysctl: 625err_sysctl:
626#endif
627 return err; 627 return err;
628} 628}
629 629