Skip to content

Commit 82b90b6

Browse files
Lu Jialinhtejun
authored andcommitted
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: a79a908 ("cgroup: introduce cgroup namespaces") Signed-off-by: Lu Jialin <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 0437719 commit 82b90b6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

kernel/cgroup/namespace.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,3 @@ const struct proc_ns_operations cgroupns_operations = {
149149
.install = cgroupns_install,
150150
.owner = cgroupns_owner,
151151
};
152-
153-
static __init int cgroup_namespaces_init(void)
154-
{
155-
return 0;
156-
}
157-
subsys_initcall(cgroup_namespaces_init);

0 commit comments

Comments
 (0)