diff options
author | Li Zefan <lizefan@huawei.com> | 2013-01-24 07:31:11 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-01-24 21:05:18 +0100 |
commit | 2a73991b76cbd38c4a0c6704449ccc08c89c3ff3 (patch) | |
tree | cde2e683c5d2139dcde24c8c2c90467fa3d5b91a /kernel/sched | |
parent | sched: split out css_online/css_offline from tg creation/destruction (diff) | |
download | linux-2a73991b76cbd38c4a0c6704449ccc08c89c3ff3.tar.xz linux-2a73991b76cbd38c4a0c6704449ccc08c89c3ff3.zip |
sched: remove redundant NULL cgroup check in task_group_path()
A task_group won't be online (thus no one can see it) until
cpu_cgroup_css_online(), and at that time tg->css.cgroup has
been initialized, so this NULL check is redundant.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/debug.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 2cd3c1b4e582..38df0db96608 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -110,13 +110,6 @@ static char *task_group_path(struct task_group *tg) if (autogroup_path(tg, group_path, PATH_MAX)) return group_path; - /* - * May be NULL if the underlying cgroup isn't fully-created yet - */ - if (!tg->css.cgroup) { - group_path[0] = '\0'; - return group_path; - } cgroup_path(tg->css.cgroup, group_path, PATH_MAX); return group_path; } |