[IPV4]: Cleanup sysctl manipulations in devinet.c
authorPavel Emelyanov <xemul@openvz.org>
Tue, 11 Dec 2007 10:17:40 +0000 (02:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:57:09 +0000 (14:57 -0800)
commit51602b2a5e849babd94311e555bf1ba58151b8d4
tree5082a8d99c8b9a83f1b0b491ceda9b9c315b1700
parent01ecfe9ba63aa0f23bbdb15371916ba4d5382330
[IPV4]: Cleanup sysctl manipulations in devinet.c

This includes:

 * moving neigh_sysctl_(un)register calls inside
   devinet_sysctl_(un)register ones, as they are always
   called in pairs;
 * making __devinet_sysctl_unregister() to unregister
   the ipv4_devconf struct, while original devinet_sysctl_unregister()
   works with the in_device to handle both - devconf and
   neigh sysctls;
 * make stubs for CONFIG_SYSCTL=n case to get rid of
   in-code ifdefs.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c