diff options
author | Zefan Li <lizefan@huawei.com> | 2014-09-19 04:29:31 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-09-19 09:16:23 -0400 |
commit | f29374b146dd02f5f99742aedaddd6ef3512fc9c (patch) | |
tree | 107e75d26d7a8a6a88747a9f5ef78e0a8405ff3d /mm/memory-failure.c | |
parent | 52de4779f201758ddcf37360f09a16895756e708 (diff) |
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>
Diffstat (limited to 'mm/memory-failure.c')
-rw-r--r-- | mm/memory-failure.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 44c6bd201d3a..8639f6b28746 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c | |||
@@ -148,7 +148,7 @@ static int hwpoison_filter_task(struct page *p) | |||
148 | ino = cgroup_ino(css->cgroup); | 148 | ino = cgroup_ino(css->cgroup); |
149 | css_put(css); | 149 | css_put(css); |
150 | 150 | ||
151 | if (!ino || ino != hwpoison_filter_memcg) | 151 | if (ino != hwpoison_filter_memcg) |
152 | return -EINVAL; | 152 | return -EINVAL; |
153 | 153 | ||
154 | return 0; | 154 | return 0; |