Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12dd7ecf authored by Kees Cook's avatar Kees Cook Committed by J. Bruce Fields
Browse files

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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 4cb57e30
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -622,8 +622,8 @@ static int __init init_nlm(void)
err_pernet:
err_pernet:
#ifdef CONFIG_SYSCTL
#ifdef CONFIG_SYSCTL
	unregister_sysctl_table(nlm_sysctl_table);
	unregister_sysctl_table(nlm_sysctl_table);
#endif
err_sysctl:
err_sysctl:
#endif
	return err;
	return err;
}
}