summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/sbus
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-12-26 14:22:26 +0000
committerobrien <obrien@FreeBSD.org>2003-12-26 14:22:26 +0000
commit7bddd007c280f13fdb1ac052490184e4bcd54815 (patch)
treea31dcd22f3f7c96c31db8c9892c347706cc5541f /sys/sparc64/sbus
parent0d534ae12d22aa1d9fe911478887f7403c514a54 (diff)
downloadFreeBSD-src-7bddd007c280f13fdb1ac052490184e4bcd54815.zip
FreeBSD-src-7bddd007c280f13fdb1ac052490184e4bcd54815.tar.gz
Don't confuse NULL with 0.
Diffstat (limited to 'sys/sparc64/sbus')
-rw-r--r--sys/sparc64/sbus/sbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sparc64/sbus/sbus.c b/sys/sparc64/sbus/sbus.c
index 3d4e110..705dcb6 100644
--- a/sys/sparc64/sbus/sbus.c
+++ b/sys/sparc64/sbus/sbus.c
@@ -375,7 +375,7 @@ sbus_probe(device_t dev)
sc->sc_is.is_dva = SBR_IOMMU_SVADIAG;
sc->sc_is.is_dtcmp = 0;
sc->sc_is.is_sb[0] = SBR_STRBUF;
- sc->sc_is.is_sb[1] = NULL;
+ sc->sc_is.is_sb[1] = 0;
/* give us a nice name.. */
name = (char *)malloc(32, M_DEVBUF, M_NOWAIT);
@@ -637,7 +637,7 @@ sbus_setup_intr(device_t dev, device_t child,
sc = (struct sbus_softc *)device_get_softc(dev);
scl = (struct sbus_clr *)malloc(sizeof(*scl), M_DEVBUF, M_NOWAIT);
if (scl == NULL)
- return (NULL);
+ return (0);
intrptr = intrmapptr = intrclrptr = 0;
intrmap = 0;
inr = INTVEC(vec);
@@ -774,7 +774,7 @@ sbus_alloc_resource(device_t bus, device_t child, int type, int *rid,
rm = &sc->sc_rd[i].rd_rman;
bh = sc->sc_rd[i].rd_bushandle;
}
- if (toffs == NULL)
+ if (toffs == 0L)
return (NULL);
flags &= ~RF_ACTIVE;
rv = rman_reserve_resource(rm, toffs, tend, count, flags,
OpenPOWER on IntegriCloud