cgroup: remove redundant check in cgroup_ino()

After we implemented default unified hierarchy, cgrp->kn can never
be NULL.

Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Zefan Li
2014-09-19 16:29:31 +08:00
committed by Tejun Heo
parent 52de4779f2
commit f29374b146
2 changed files with 3 additions and 6 deletions

View File

@@ -148,7 +148,7 @@ static int hwpoison_filter_task(struct page *p)
ino = cgroup_ino(css->cgroup);
css_put(css);
if (!ino || ino != hwpoison_filter_memcg)
if (ino != hwpoison_filter_memcg)
return -EINVAL;
return 0;