From: Julia Lawall Date: Sat, 20 Jun 2015 16:59:04 +0000 (+0200) Subject: staging: lustre: lov: Use !x to check for kzalloc failure X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~747 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36a86fe68f875d2b3fc8a61d4a80494e57333f1f;p=pandora-kernel.git staging: lustre: lov: Use !x to check for kzalloc failure !x is more normal for kzalloc failure in the kernel. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; statement S1, S2; @@ x = kzalloc(...); if ( - x == NULL + !x ) S1 else S2 // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed