]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lowmemorykiller: remove bogus NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Apr 2016 13:02:35 +0000 (16:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:58:02 +0000 (17:58 -0700)
commit474a6823edb3043769232d23272c8f4ec7114488
tree94c914f3ff3d2956b016b509bdc4637b60152e98
parentd5ccccac233b38e0bea372ed1b2fda44248fbd5c
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: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/lowmemorykiller.c