mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
sysctl: Remove the unnecessary sysctl_set parent concept.
In sysctl_net register the two networking roots in the proper order. In register_sysctl walk the sysctl sets in the reverse order of the sysctl roots. Remove parent from ctl_table_set and setup_sysctl_set as it is no longer needed. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
@@ -75,7 +75,6 @@ static struct ctl_table_root net_sysctl_ro_root = {
|
||||
static int __net_init sysctl_net_init(struct net *net)
|
||||
{
|
||||
setup_sysctl_set(&net->sysctls,
|
||||
&net_sysctl_ro_root.default_set,
|
||||
is_seen);
|
||||
return 0;
|
||||
}
|
||||
@@ -96,9 +95,9 @@ static __init int net_sysctl_init(void)
|
||||
ret = register_pernet_subsys(&sysctl_pernet_ops);
|
||||
if (ret)
|
||||
goto out;
|
||||
register_sysctl_root(&net_sysctl_root);
|
||||
setup_sysctl_set(&net_sysctl_ro_root.default_set, NULL, NULL);
|
||||
setup_sysctl_set(&net_sysctl_ro_root.default_set, NULL);
|
||||
register_sysctl_root(&net_sysctl_ro_root);
|
||||
register_sysctl_root(&net_sysctl_root);
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user