]> 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)
commitdf0ffdfc9dea9b2244cf8a29bae4e543cca57b03
tree94c914f3ff3d2956b016b509bdc4637b60152e98
parent92cf521185fb88a475d270870f6cd627c8c2bb88
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