diff options
author | Lu Jialin <lujialin4@huawei.com> | 2023-08-10 11:25:28 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-08-14 14:29:47 -1000 |
commit | 82b90b6c5b38e457c7081d50dff11ecbafc1e61a (patch) | |
tree | 4f089933a48ca55ee5b53277e4438abc9886f76f /kernel/cgroup | |
parent | 0437719c1a97791481c5fd59642494f2108701a8 (diff) | |
download | lwn-82b90b6c5b38e457c7081d50dff11ecbafc1e61a.tar.gz lwn-82b90b6c5b38e457c7081d50dff11ecbafc1e61a.zip |
cgroup:namespace: Remove unused cgroup_namespaces_init()
cgroup_namspace_init() just return 0. Therefore, there is no need to
call it during start_kernel. Just remove it.
Fixes: a79a908fd2b0 ("cgroup: introduce cgroup namespaces")
Signed-off-by: Lu Jialin <lujialin4@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r-- | kernel/cgroup/namespace.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/cgroup/namespace.c b/kernel/cgroup/namespace.c index 0d5c29879a50..144a464e45c6 100644 --- a/kernel/cgroup/namespace.c +++ b/kernel/cgroup/namespace.c @@ -149,9 +149,3 @@ const struct proc_ns_operations cgroupns_operations = { .install = cgroupns_install, .owner = cgroupns_owner, }; - -static __init int cgroup_namespaces_init(void) -{ - return 0; -} -subsys_initcall(cgroup_namespaces_init); |