aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/snc/dp83932.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/snc/dp83932.c')
-rw-r--r--sys/dev/snc/dp83932.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c
index d4e062ac1f2f..a496b672dc09 100644
--- a/sys/dev/snc/dp83932.c
+++ b/sys/dev/snc/dp83932.c
@@ -1129,8 +1129,7 @@ sonic_get(struct snc_softc *sc, u_int32_t pkt, int datalen)
len = MLEN;
}
if (datalen >= MINCLSIZE) {
- MCLGET(m, M_NOWAIT);
- if ((m->m_flags & M_EXT) == 0) {
+ if (!(MCLGET(m, M_NOWAIT))) {
if (top) m_freem(top);
return (0);
}