ipvs: Wrap sysctl_cache_bypass and remove ifdefs in ip_vs_leave
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 21 Sep 2015 18:02:49 +0000 (13:02 -0500)
committerSimon Horman <horms@verge.net.au>
Thu, 24 Sep 2015 00:34:42 +0000 (09:34 +0900)
commit570329487437d4531eb806accdf98726923367ae
tree93645296803b88209bb74d41f51c99af69a33dbe
parent7c08d78e6f122039ab98edf74c3c7b4b15c9fa1d
ipvs: Wrap sysctl_cache_bypass and remove ifdefs in ip_vs_leave

With sysctl_cache_bypass now a compile time constant the compiler can
figue out that it can elimiate all of the code that depends on
sysctl_cache_bypass being true.

Also remove the duplicate computation of net previously necessitated
by #ifdef CONFIG_SYSCTL

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_core.c