change NULL to 0 to silence warning.
This commit is contained in:
parent
8b8a0cef40
commit
3939094dfb
@ -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) {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user