提交 ae25d43c 编写于 作者: D Dan Carpenter 提交者: Greg Kroah-Hartman

staging: lowmemorykiller: remove bogus NULL check

The NULL checking here doesn't make sense, so it causes a static checker
warning.  It turns out that p->mm can't be NULL so the inconsistency is
harmless and we should just remove the check.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 6ffdc7b9
...@@ -131,7 +131,7 @@ static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc) ...@@ -131,7 +131,7 @@ static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc)
if (!p) if (!p)
continue; continue;
if (task_lmk_waiting(p) && p->mm && if (task_lmk_waiting(p) &&
time_before_eq(jiffies, lowmem_deathpending_timeout)) { time_before_eq(jiffies, lowmem_deathpending_timeout)) {
task_unlock(p); task_unlock(p);
rcu_read_unlock(); rcu_read_unlock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册