Re: [PATCH 10/68] 0 -> NULL, for arch/mips

2007-07-28 Thread Markus Gothe
Usually it's not only cleaner, it's what you want to do... AFAIK 'NULL' is implemented/defined by the compiler, so if you've got a compiler which defines NULL otherwise than( a pointer to) zero you're screwed. ;) //Markus On 27 Jul, 2007, at 11:45 , Yoann Padioleau wrote: When

Re: [PATCH 10/68] 0 - NULL, for arch/mips

2007-07-28 Thread Markus Gothe
Usually it's not only cleaner, it's what you want to do... AFAIK 'NULL' is implemented/defined by the compiler, so if you've got a compiler which defines NULL otherwise than( a pointer to) zero you're screwed. ;) //Markus On 27 Jul, 2007, at 11:45 , Yoann Padioleau wrote: When

Re: [PATCH 10/68] 0 -> NULL, for arch/mips

2007-07-27 Thread Ralf Baechle
On Fri, Jul 27, 2007 at 11:45:00AM +0200, Yoann Padioleau wrote: Applied. Ralf - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

[PATCH 10/68] 0 -> NULL, for arch/mips

2007-07-27 Thread Yoann Padioleau
When comparing a pointer, it's clearer to compare it to NULL than to 0. Here is an excerpt of the semantic patch: @@ expression *E; @@ E == - 0 + NULL @@ expression *E; @@ E != - 0 + NULL Signed-off-by: Yoann Padioleau <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc:

Re: [PATCH 10/68] 0 - NULL, for arch/mips

2007-07-27 Thread Ralf Baechle
On Fri, Jul 27, 2007 at 11:45:00AM +0200, Yoann Padioleau wrote: Applied. Ralf - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

[PATCH 10/68] 0 - NULL, for arch/mips

2007-07-27 Thread Yoann Padioleau
When comparing a pointer, it's clearer to compare it to NULL than to 0. Here is an excerpt of the semantic patch: @@ expression *E; @@ E == - 0 + NULL @@ expression *E; @@ E != - 0 + NULL Signed-off-by: Yoann Padioleau [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: