diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-04-19 15:34:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-21 03:22:28 +0200 |
commit | 0ca7a4c87d27dd2fde0783dec94a821d6d035696 (patch) | |
tree | 3f9d1cd9a8146ce751e43f8f103a255fc7ec199d /net/ax25/af_ax25.c | |
parent | net ipv4: Remove the unneeded registration of an empty net/ipv4/neigh (diff) | |
download | linux-0ca7a4c87d27dd2fde0783dec94a821d6d035696.tar.xz linux-0ca7a4c87d27dd2fde0783dec94a821d6d035696.zip |
net ax25: Simplify and cleanup the ax25 sysctl handling.
Don't register/unregister every ax25 table in a batch. Instead register
and unregister per device ax25 sysctls as ax25 devices come and go.
This moves ax25 to be a completely modern sysctl user. Registering the
sysctls in just the initial network namespace, removing the use of
.child entries that are no longer natively supported by the sysctl core
and taking advantage of the fact that there are no longer any ordering
constraints between registering and unregistering different sysctl
tables.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25/af_ax25.c')
-rw-r--r-- | net/ax25/af_ax25.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 0906c194a413..282eb76bc7d6 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c @@ -1990,7 +1990,6 @@ static int __init ax25_init(void) sock_register(&ax25_family_ops); dev_add_pack(&ax25_packet_type); register_netdevice_notifier(&ax25_dev_notifier); - ax25_register_sysctl(); proc_net_fops_create(&init_net, "ax25_route", S_IRUGO, &ax25_route_fops); proc_net_fops_create(&init_net, "ax25", S_IRUGO, &ax25_info_fops); @@ -2015,7 +2014,6 @@ static void __exit ax25_exit(void) ax25_uid_free(); ax25_dev_free(); - ax25_unregister_sysctl(); unregister_netdevice_notifier(&ax25_dev_notifier); dev_remove_pack(&ax25_packet_type); |