mm/oom_kill: remove weird use of ERR_PTR()/PTR_ERR().
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Jul 2013 01:54:08 +0000 (11:24 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Jul 2013 01:55:05 +0000 (11:25 +0930)
The normal expectation for ERR_PTR() is to put a negative errno into a
pointer.  oom_kill puts the magic -1 in the result (and has since
pre-git), which is probably clearer with an explicit cast.

Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found