diff options
author | Li Zefan <lizefan@huawei.com> | 2013-01-24 06:43:51 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-01-24 18:40:05 (GMT) |
commit | b5d646f5d5a135064232ff3a140a47a5b84bc911 (patch) | |
tree | 5fc28dda2515b0c7eede54ab0a687d7a9714240f /kernel | |
parent | 2739d3cce9816805fe26774fea2527d5b16e924d (diff) | |
download | linux-fsl-qoriq-b5d646f5d5a135064232ff3a140a47a5b84bc911.tar.xz |
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: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cgroup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index ad3359f..8da9048 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -4994,8 +4994,7 @@ void cgroup_exit(struct task_struct *tsk, int run_callbacks) } task_unlock(tsk); - if (cg) - put_css_set_taskexit(cg); + put_css_set_taskexit(cg); } /** |