[MIPS] 0 -> NULL
authorYoann Padioleau <padator@wanadoo.fr>
Fri, 27 Jul 2007 09:45:00 +0000 (11:45 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 31 Jul 2007 20:35:22 +0000 (21:35 +0100)
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 <padator@wanadoo.fr>
Cc: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Cc: akpm@linux-foundation.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

No differences found