diff options
Diffstat (limited to 'sys/net/if_ef.c')
-rw-r--r-- | sys/net/if_ef.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/net/if_ef.c b/sys/net/if_ef.c index 19c1687..cf12fab 100644 --- a/sys/net/if_ef.c +++ b/sys/net/if_ef.c @@ -415,11 +415,7 @@ ef_output(struct ifnet *ifp, struct mbuf **mp, struct sockaddr *dst, short *tp, type = htons(m->m_pkthdr.len); break; case ETHER_FT_8022: - M_PREPEND(m, ETHER_HDR_LEN + 3, M_TRYWAIT); - if (m == NULL) { - *mp = NULL; - return ENOBUFS; - } + M_PREPEND(m, ETHER_HDR_LEN + 3, M_WAIT); /* * Ensure that ethernet header and next three bytes * will fit into single mbuf @@ -438,11 +434,7 @@ ef_output(struct ifnet *ifp, struct mbuf **mp, struct sockaddr *dst, short *tp, *hlen += 3; break; case ETHER_FT_SNAP: - M_PREPEND(m, 8, M_TRYWAIT); - if (m == NULL) { - *mp = NULL; - return ENOBUFS; - } + M_PREPEND(m, 8, M_WAIT); type = htons(m->m_pkthdr.len); cp = mtod(m, u_char *); bcopy("\xAA\xAA\x03\x00\x00\x00\x81\x37", cp, 8); |