]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitebeb933d0abd9d6302d08100f47fd53a08a029e4
tree5082a8d99c8b9a83f1b0b491ceda9b9c315b1700
parentf75d50c018c71e80931cd1bcdd1374d88f89d04a
[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