summaryrefslogtreecommitdiffstats
path: root/sys/dev/lnc/if_lnc.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-02-05 02:00:56 +0000
committerdillon <dillon@FreeBSD.org>2002-02-05 02:00:56 +0000
commitb3ddc72561f16866b59e6109d6803494f0d06caa (patch)
treeddce9732dedf55dfc29f00f3efed3b0ce5e9788e /sys/dev/lnc/if_lnc.c
parent0511c3ea5ba32c8d8794bbaecfb500020b2d7f0f (diff)
downloadFreeBSD-src-b3ddc72561f16866b59e6109d6803494f0d06caa.zip
FreeBSD-src-b3ddc72561f16866b59e6109d6803494f0d06caa.tar.gz
Get rid of the twisted MFREE() macro entirely.
Reviewed by: dg, bmilekic MFC after: 3 days
Diffstat (limited to 'sys/dev/lnc/if_lnc.c')
-rw-r--r--sys/dev/lnc/if_lnc.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c
index 9028b98..1630928 100644
--- a/sys/dev/lnc/if_lnc.c
+++ b/sys/dev/lnc/if_lnc.c
@@ -833,9 +833,11 @@ lnc_tint(struct lnc_softc *sc)
sc->mbuf_count++;
start->buff.mbuf = 0;
} else {
- struct mbuf *junk;
- MFREE(start->buff.mbuf, junk);
- start->buff.mbuf = 0;
+ /*
+ * XXX should this be m_freem()?
+ */
+ m_free(start->buff.mbuf);
+ start->buff.mbuf = NULL;
}
}
sc->pending_transmits--;
@@ -1308,8 +1310,8 @@ lnc_start(struct ifnet *ifp)
m->m_len -= chunk;
m->m_data += chunk;
if (m->m_len <= 0) {
- MFREE(m, head->m_next);
- m = head->m_next;
+ m = m_free(m);
+ head->m_next = m;
}
}
}
OpenPOWER on IntegriCloud