From: Julia Lawall Date: Fri, 28 May 2010 20:58:46 +0000 (+0200) Subject: mfd: kzalloc doesn't return ERR_PTR X-Git-Tag: v2.6.36-rc1~59^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25fe24f884015ba2e1e39376deb055bbbdc5ba83;p=pandora-kernel.git mfd: kzalloc doesn't return ERR_PTR Use !x rather than IS_ERR(x) to test the result of kzalloc. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,E; @@ x = \(kmalloc\|kzalloc\|kcalloc\)(...) ... when != x = E - IS_ERR(x) + !x // Signed-off-by: Julia Lawall Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed