commit | bb144d09a95c6016528ec869b4398ae679cc4df7 | [log] [tgz] |
---|---|---|
author | Julia Lawall <Julia.Lawall@lip6.fr> | Sat Jun 20 18:59:05 2015 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Jul 13 19:35:52 2015 -0700 |
tree | 2e4d2983560ae858bc2532fb4ba6523934f44c69 | |
parent | 36a86fe68f875d2b3fc8a61d4a80494e57333f1f [diff] |
staging: lustre: mdc: 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/) // <smpl> @@ expression x; statement S1, S2; @@ x = kzalloc(...); if ( - x == NULL + !x ) S1 else S2 // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>