diff options
author | andre <andre@FreeBSD.org> | 2013-08-24 21:09:57 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2013-08-24 21:09:57 +0000 |
commit | 6ad648e223be6153dd1674649bfc08d9733aa04a (patch) | |
tree | ee6ceca012e8636b524b1c6c58ea0f30423ab84d /sys/kern | |
parent | 351bab29d0ce107dd4e077382c34b080d6c3f1af (diff) | |
download | FreeBSD-src-6ad648e223be6153dd1674649bfc08d9733aa04a.zip FreeBSD-src-6ad648e223be6153dd1674649bfc08d9733aa04a.tar.gz |
Remove unused m_free_fast(). The difference to m_free() is only
2 predictable branches nowadays. However as a pre-condition the
caller had to ensure that the mbuf pkthdr did not have any mtags
attached to it, costing some potential branches again.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_mbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index a9777ef..967fea1 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -447,7 +447,7 @@ mb_dtor_mbuf(void *mem, int size, void *arg) m = (struct mbuf *)mem; flags = (unsigned long)arg; - if ((flags & MB_NOTAGS) == 0 && (m->m_flags & M_PKTHDR) != 0) + if ((m->m_flags & M_PKTHDR) && !SLIST_EMPTY(&m->m_pkthdr.tags)) m_tag_delete_chain(m, NULL); KASSERT((m->m_flags & M_EXT) == 0, ("%s: M_EXT set", __func__)); KASSERT((m->m_flags & M_NOFREE) == 0, ("%s: M_NOFREE set", __func__)); |