summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-12-24 18:23:02 +0000
committeralfred <alfred@FreeBSD.org>2003-12-24 18:23:02 +0000
commit5784eb3ac8703bb999b77bc9c8370b1709a6fcf6 (patch)
treeb4f8a29ae1e197edcb83a25f6dbd356a5638234b /sys/dev/hatm
parentad7968509b04f6687f13f98cb43f0d2872226bdb (diff)
downloadFreeBSD-src-5784eb3ac8703bb999b77bc9c8370b1709a6fcf6.zip
FreeBSD-src-5784eb3ac8703bb999b77bc9c8370b1709a6fcf6.tar.gz
change NULL to 0 to silence warning.
Diffstat (limited to 'sys/dev/hatm')
-rw-r--r--sys/dev/hatm/if_hatm_intr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hatm/if_hatm_intr.c b/sys/dev/hatm/if_hatm_intr.c
index 4e9582a..2dbfc69 100644
--- a/sys/dev/hatm/if_hatm_intr.c
+++ b/sys/dev/hatm/if_hatm_intr.c
@@ -342,7 +342,7 @@ he_intr_rbp(struct hatm_softc *sc, struct herbp *rbp, u_int large,
if ((error = bus_dmamap_load(sc->mbuf_tag,
sc->rmaps[sc->lbufs_next],
m->m_data, rbp->bsize, hatm_mbuf_helper,
- &rbp->rbp[rbp->tail].phys, BUS_DMA_NOWAIT)) != NULL)
+ &rbp->rbp[rbp->tail].phys, BUS_DMA_NOWAIT)) != 0)
panic("hatm: mbuf mapping failed %d", error);
bus_dmamap_sync(sc->mbuf_tag,
OpenPOWER on IntegriCloud