summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-12 21:38:19 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-12 21:38:19 +0000
commit0de10d6b00163823de8fd0a6aa98c7bb130fa608 (patch)
treef963112cd660881d6e7a24cc1227c49b81e45e6d /sys
parentb8e52d1ec89088cdfac56aaa08a8e430b1d6d553 (diff)
A few, hopefully last, NULL-as-an-integer misuses.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mvme88k/dev/vme.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/dev/vme.c b/sys/arch/mvme88k/dev/vme.c
index 466d5ba4038..6c11d69f375 100644
--- a/sys/arch/mvme88k/dev/vme.c
+++ b/sys/arch/mvme88k/dev/vme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vme.c,v 1.50 2011/04/07 15:30:15 miod Exp $ */
+/* $OpenBSD: vme.c,v 1.51 2011/04/12 21:38:18 miod Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1999 Steve Murphree, Jr.
@@ -94,7 +94,7 @@ vme_map(bus_addr_t addr, bus_size_t size, int flags, bus_space_handle_t *ret)
vaddr_t map;
map = (vaddr_t)mapiodev((paddr_t)addr, size);
- if (map == NULL)
+ if (map == 0)
return ENOMEM;
*ret = (bus_space_handle_t)map;
@@ -343,7 +343,7 @@ vmepmap(sc, vmeaddr, bustype)
#endif
base = vme2chip_map(base, 16);
#ifdef DEBUG
- if (base == NULL) {
+ if (base == 0) {
printf("%s: cannot map pa 0x%x\n",
sc->dv_xname, base);
}
@@ -356,7 +356,7 @@ vmepmap(sc, vmeaddr, bustype)
#endif
base = vme2chip_map(base, 32);
#ifdef DEBUG
- if (base == NULL) {
+ if (base == 0) {
printf("%s: cannot map pa 0x%x\n",
sc->dv_xname, base);
}