diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-13 00:43:12 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-13 00:43:12 +0000 |
commit | 11e5972b27ca0975b0af536fd94ecd4e46446113 (patch) | |
tree | 664182c1d38d31a49b5468c942af3d170870c2b3 /sys/i386/isa | |
parent | 54916bb85902893abd07bee1cdcdcbba18bcf21a (diff) | |
download | src-11e5972b27ca0975b0af536fd94ecd4e46446113.tar.gz src-11e5972b27ca0975b0af536fd94ecd4e46446113.zip |
MFC remove the MFREE() mbuf macro and cleanup twists in related code.
Notes
Notes:
svn path=/stable/4/; revision=90593
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/if_lnc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/isa/if_lnc.c b/sys/i386/isa/if_lnc.c index bfe0e3b89929..7e291ec8eefd 100644 --- a/sys/i386/isa/if_lnc.c +++ b/sys/i386/isa/if_lnc.c @@ -839,9 +839,9 @@ 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 shouldn't this be m_freem ?? */ + m_free(start->buff.mbuf); + start->buff.mbuf = NULL; } } sc->pending_transmits--; @@ -1702,8 +1702,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; } } } |