MFC r275394:

Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by:	Yandex LLC
This commit is contained in:
ae 2014-12-16 11:53:45 +00:00
parent 257146dad4
commit 3e533b7379
2 changed files with 0 additions and 4 deletions

View File

@ -499,8 +499,6 @@ stf_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
}
M_PREPEND(m, sizeof(struct ip), M_NOWAIT);
if (m && m->m_len < sizeof(struct ip))
m = m_pullup(m, sizeof(struct ip));
if (m == NULL) {
ifa_free(&ia6->ia_ifa);
ifp->if_oerrors++;

View File

@ -366,8 +366,6 @@ icmp6_error(struct mbuf *m, int type, int code, int param)
preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
M_PREPEND(m, preplen, M_NOWAIT); /* FIB is also copied over. */
if (m && m->m_len < preplen)
m = m_pullup(m, preplen);
if (m == NULL) {
nd6log((LOG_DEBUG, "ENOBUFS in icmp6_error %d\n", __LINE__));
return;