commit | 94e67761bd05150976342516180508d93a0a7c07 | [log] [tgz] |
---|---|---|
author | Julia Lawall <Julia.Lawall@lip6.fr> | Sat Jun 20 18:59:02 2015 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Jul 13 19:35:52 2015 -0700 |
tree | 61bfad989b17e7c828e2c0a23b4dab1a2da0a84a | |
parent | c38ce3548e0c5df27b63f9b591f11a9c34416576 [diff] |
staging: lustre: ldlm: 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>