[PATCH 10/12] staging: lustre: obdecho: Use !x to check for kzalloc failure

2015-06-20 Thread Julia Lawall
!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 ---

[PATCH 10/12] staging: lustre: obdecho: Use !x to check for kzalloc failure

2015-06-20 Thread Julia Lawall
!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