change NULL to 0 to silence warning.

This commit is contained in:
Alfred Perlstein 2003-12-24 18:23:02 +00:00
parent 8b8a0cef40
commit 3939094dfb
2 changed files with 2 additions and 2 deletions

View File

@ -545,7 +545,7 @@ ndis_mtop(m0, p)
priv->npp_packetooboffset = offsetof(ndis_packet, np_oob);
for (m = m0; m != NULL; m = m->m_next) {
if (m->m_len == NULL)
if (m->m_len == 0)
continue;
buf = malloc(sizeof(ndis_buffer), M_DEVBUF, M_NOWAIT|M_ZERO);
if (buf == NULL) {

View File

@ -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,