Re: [PATCH] 0 -> NULL, drivers/usb/gadget/

2007-07-24 Thread Jan Engelhardt
On Jul 23 2007 18:34, Yoann Padioleau wrote: > >PS: I have performed the same transformation on the whole kernel >and it affects around 300 files. I will send the remaining patches >if you are interested in. Don't hold off :) Jan -- - To unsubscribe from this list: send the line "unsub

[PATCH] 0 -> NULL, drivers/usb/gadget/

2007-07-23 Thread Yoann Padioleau
When comparing a pointer, it's clearer to compare it to NULL than to 0. Here is the semantic patch: @@ expression *E; @@ E == - 0 + NULL @@ expression *E; @@ - 0 + NULL == E @@ expression *E; @@ E != - 0 + NULL @@ expression *E; @@ - 0 + NULL != E PS: I have performed the same