Re: [PATCH 10/16] Staging: lustre: obdclass: genops.c: Remove explicit NULL comparison

2015-09-10 Thread Joe Perches
On Fri, 2015-09-11 at 07:34 +0530, Shraddha Barke wrote: > Remove explicit NULL comparison and write it in its simpler form. > Replacement done with coccinelle: Hi Shraddha. If you are going to do these conversions, please also do the equivalent != NULL conversions: - e != NULL + e > diff --git

[PATCH 10/16] Staging: lustre: obdclass: genops.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/obdclass/genops.c | 52 - 1 file changed, 26 insertions(+)