aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/pci/ops-emma2rh.c
diff options
context:
space:
mode:
authorYoann Padioleau <padator@wanadoo.fr>2007-07-27 05:45:00 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-07-31 16:35:22 -0400
commit7e5829b56be5aeb931cf52d78c95285c2b8f50e3 (patch)
treebb189a9b13e26383ada7c50d7934d2d6126d8e61 /arch/mips/pci/ops-emma2rh.c
parent72db43be8bf610d50d86a9e683e0eff3c2cc5ba4 (diff)
[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: 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>
Diffstat (limited to 'arch/mips/pci/ops-emma2rh.c')
-rw-r--r--arch/mips/pci/ops-emma2rh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pci/ops-emma2rh.c b/arch/mips/pci/ops-emma2rh.c
index 38f181625e10..d31bfc6d4150 100644
--- a/arch/mips/pci/ops-emma2rh.c
+++ b/arch/mips/pci/ops-emma2rh.c
@@ -45,7 +45,7 @@ static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num)
45 /* check if the bus is top-level */ 45 /* check if the bus is top-level */
46 if (bus->parent != NULL) { 46 if (bus->parent != NULL) {
47 *bus_num = bus->number; 47 *bus_num = bus->number;
48 db_assert(bus_num != 0); 48 db_assert(bus_num != NULL);
49 } else 49 } else
50 *bus_num = 0; 50 *bus_num = 0;
51 51