diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2014-12-02 05:41:03 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2014-12-02 05:41:03 +0000 |
commit | 2dfcd0ae9d9b78d5f0d861a3f85f20a96ec62793 (patch) | |
tree | f7c3fb1151b7644310a6dc9acf0b7b5481a010b1 /sys/net/if_stf.c | |
parent | bd766f3425efbc8bdb407152038d129e25e18f7a (diff) | |
download | src-2dfcd0ae9d9b78d5f0d861a3f85f20a96ec62793.tar.gz src-2dfcd0ae9d9b78d5f0d861a3f85f20a96ec62793.zip |
Remove unneded check. No need to do m_pullup to the size that we prepended.
MFC after: 1 week
Sponsored by: Yandex LLC
Notes
Notes:
svn path=/head/; revision=275394
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r-- | sys/net/if_stf.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c index 00e34a236a99..f3a604255ddd 100644 --- a/sys/net/if_stf.c +++ b/sys/net/if_stf.c @@ -482,8 +482,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) { if_inc_counter(ifp, IFCOUNTER_OERRORS, 1); return ENOBUFS; |