Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5d646f5 authored by Li Zefan's avatar Li Zefan Committed by Tejun Heo
Browse files

cgroup: remove a NULL check in cgroup_exit()



init_task.cgroups is initialized at boot phase, and whenver a ask
is forked, it's cgroups pointer is inherited from its parent, and
it's never set to NULL afterwards.

Signed-off-by: default avatarLi Zefan <lizefan@huawei.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 2739d3cc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4994,7 +4994,6 @@ void cgroup_exit(struct task_struct *tsk, int run_callbacks)
	}
	task_unlock(tsk);

	if (cg)
	put_css_set_taskexit(cg);
}