diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-05 02:00:56 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-05 02:00:56 +0000 |
commit | ecde8f7c29a43912ff0bb4ee5874d67754b375ab (patch) | |
tree | ddce9732dedf55dfc29f00f3efed3b0ce5e9788e /sys/dev/lnc | |
parent | 14102e47d3d5018240a34a2eb058212c098afc28 (diff) | |
download | src-ecde8f7c29a43912ff0bb4ee5874d67754b375ab.tar.gz src-ecde8f7c29a43912ff0bb4ee5874d67754b375ab.zip |
Get rid of the twisted MFREE() macro entirely.
Reviewed by: dg, bmilekic
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=90227
Diffstat (limited to 'sys/dev/lnc')
-rw-r--r-- | sys/dev/lnc/if_lnc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c index 9028b9801312..163092880f89 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; } } } |