From: Julia Lawall Date: Sat, 20 Jun 2015 16:59:03 +0000 (+0200) Subject: staging: lustre: lmv: Use !x to check for kzalloc failure X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~748 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76e4290ccc428fddd9052d12ceb5b806ae982a26;p=pandora-kernel.git staging: lustre: lmv: 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