aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/tl/if_tl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/tl/if_tl.c')
-rw-r--r--sys/dev/tl/if_tl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/tl/if_tl.c b/sys/dev/tl/if_tl.c
index 8535b046565f..455dd38d1cfa 100644
--- a/sys/dev/tl/if_tl.c
+++ b/sys/dev/tl/if_tl.c
@@ -1813,8 +1813,7 @@ tl_encap(sc, c, m_head)
return(1);
}
if (m_head->m_pkthdr.len > MHLEN) {
- MCLGET(m_new, M_NOWAIT);
- if (!(m_new->m_flags & M_EXT)) {
+ if (!(MCLGET(m_new, M_NOWAIT))) {
m_freem(m_new);
if_printf(ifp, "no memory for tx list\n");
return(1);