summaryrefslogtreecommitdiff
path: root/sys/arch/aviion/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:30:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:30:17 +0000
commit470f59fa3f11b7317fc5907cfef6043f2104bcc6 (patch)
tree50aedec19587d2927b807e6719da0022055c56df /sys/arch/aviion/dev
parent1d2ed5cc87538f3c2a6389c586a609a8b73610b7 (diff)
Do not use NULL in integer comparisons. No functional change.
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
Diffstat (limited to 'sys/arch/aviion/dev')
-rw-r--r--sys/arch/aviion/dev/if_le_syscon.c4
-rw-r--r--sys/arch/aviion/dev/oosiop_syscon.c4
-rw-r--r--sys/arch/aviion/dev/vme.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/aviion/dev/if_le_syscon.c b/sys/arch/aviion/dev/if_le_syscon.c
index 078126b77b9..5c19dfdf4c3 100644
--- a/sys/arch/aviion/dev/if_le_syscon.c
+++ b/sys/arch/aviion/dev/if_le_syscon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_le_syscon.c,v 1.11 2010/12/31 21:38:07 miod Exp $ */
+/* $OpenBSD: if_le_syscon.c,v 1.12 2011/04/07 15:30:15 miod Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -145,7 +145,7 @@ le_syscon_attach(struct device *parent, struct device *self, void *aux)
}
va = uvm_km_valloc(kernel_map, ptoa(etherpages));
- if (va == NULL) {
+ if (va == 0) {
printf(": can't map descriptor memory\n");
uvm_pglistfree(&pglist);
return;
diff --git a/sys/arch/aviion/dev/oosiop_syscon.c b/sys/arch/aviion/dev/oosiop_syscon.c
index 8fd04b27191..e2ec0f46ce0 100644
--- a/sys/arch/aviion/dev/oosiop_syscon.c
+++ b/sys/arch/aviion/dev/oosiop_syscon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: oosiop_syscon.c,v 1.3 2010/04/24 18:44:27 miod Exp $ */
+/* $OpenBSD: oosiop_syscon.c,v 1.4 2011/04/07 15:30:15 miod Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -95,7 +95,7 @@ oosiop_syscon_attach(struct device *parent, struct device *self, void *aux)
}
sc->sc_bst = ca->ca_iot;
sc->sc_bsh = ioh;
- sc->sc_dmat = NULL; /* no real use of tag yet */
+ sc->sc_dmat = 0; /* no real use of tag yet */
sc->sc_freq = 33333333; /* XXX 25MHz models? */
sc->sc_chip = OOSIOP_700;
diff --git a/sys/arch/aviion/dev/vme.c b/sys/arch/aviion/dev/vme.c
index 88b982fd082..4c82e2dc31e 100644
--- a/sys/arch/aviion/dev/vme.c
+++ b/sys/arch/aviion/dev/vme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vme.c,v 1.11 2010/12/31 21:38:08 miod Exp $ */
+/* $OpenBSD: vme.c,v 1.12 2011/04/07 15:30:15 miod Exp $ */
/*
* Copyright (c) 2006, 2007, 2010 Miodrag Vallat.
*
@@ -497,7 +497,7 @@ vme_map_r(const struct vme_range *r, paddr_t pa, psize_t len, int flags,
u_int pg;
ova = va = uvm_km_valloc(kernel_map, len);
- if (va == NULL)
+ if (va == 0)
return ENOMEM;
pa += r->vr_base;