summaryrefslogtreecommitdiff
path: root/sys/dev/isa
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/dev/isa
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/dev/isa')
-rw-r--r--sys/dev/isa/isapnp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/isapnp.c b/sys/dev/isa/isapnp.c
index 0b1094388e5..5e5d8a7b674 100644
--- a/sys/dev/isa/isapnp.c
+++ b/sys/dev/isa/isapnp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isapnp.c,v 1.38 2011/04/05 19:54:35 jasper Exp $ */
+/* $OpenBSD: isapnp.c,v 1.39 2011/04/07 15:30:16 miod Exp $ */
/* $NetBSD: isapnp.c,v 1.9.4.3 1997/10/29 00:40:43 thorpej Exp $ */
/*
@@ -200,7 +200,7 @@ isapnp_free_region(t, r)
return;
bus_space_unmap(t, r->h, r->length);
- r->h = NULL;
+ r->h = 0;
}
@@ -217,7 +217,7 @@ isapnp_alloc_region(t, r)
if (r->length == 0)
return 0;
- r->h = NULL;
+ r->h = 0;
for (r->base = r->minbase; r->base <= r->maxbase;
r->base += r->align) {
error = bus_space_map(t, r->base, r->length, 0, &r->h);