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