From: Rusty Russell Date: Mon, 15 Jul 2013 01:54:08 +0000 (+0930) Subject: mm/oom_kill: remove weird use of ERR_PTR()/PTR_ERR(). X-Git-Tag: v3.12-rc1~146^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b4f2b56a48c8ea9775bd2b29681725d4474367a;p=pandora-kernel.git mm/oom_kill: remove weird use of ERR_PTR()/PTR_ERR(). 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 Signed-off-by: Rusty Russell --- Reading git-diff-tree failed