Skip to content
Commit 7e5829b5 authored by Yoann Padioleau's avatar Yoann Padioleau Committed by Ralf Baechle
Browse files

[MIPS] 0 -> NULL



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: default avatarYoann Padioleau <padator@wanadoo.fr>
Cc: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Cc: akpm@linux-foundation.org
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 72db43be
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment