cgroup:namespace: Remove unused cgroup_namespaces_init()

[ Upstream commit 82b90b6c5b ]

cgroup_namspace_init() just return 0. Therefore, there is no need to
call it during start_kernel. Just remove it.

Fixes: a79a908fd2 ("cgroup: introduce cgroup namespaces")
Signed-off-by: Lu Jialin <lujialin4@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Lu Jialin 2023-08-10 11:25:28 +00:00 committed by Greg Kroah-Hartman
parent 0d545a8e77
commit 848cd6f24a
1 changed files with 0 additions and 6 deletions

View File

@ -149,9 +149,3 @@ const struct proc_ns_operations cgroupns_operations = {
.install = cgroupns_install, .install = cgroupns_install,
.owner = cgroupns_owner, .owner = cgroupns_owner,
}; };
static __init int cgroup_namespaces_init(void)
{
return 0;
}
subsys_initcall(cgroup_namespaces_init);