From b363d98dc73ace9be2f52ad024a303ea022c7223 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sun, 5 Oct 2014 06:28:53 +0000 Subject: [PATCH] Eliminate use of M_EXT in IP6_EXTHDR_CHECK() by trimming a redundant 'if'/'else' case: it matches the simple 'else' case that follows. This reduces awareness of external-storage mechanics outside of the mbuf allocator. Reviewed by: bz MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D900 --- sys/netinet/ip6.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/netinet/ip6.h b/sys/netinet/ip6.h index 8f498410733..ff870579bbc 100644 --- a/sys/netinet/ip6.h +++ b/sys/netinet/ip6.h @@ -277,12 +277,6 @@ do { \ (((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \ IP6STAT_INC(ip6s_exthdrtoolong); \ return ret; \ - } else if ((m)->m_flags & M_EXT) { \ - if ((m)->m_len < (off) + (hlen)) { \ - IP6STAT_INC(ip6s_exthdrtoolong); \ - m_freem(m); \ - return ret; \ - } \ } else { \ if ((m)->m_len < (off) + (hlen)) { \ IP6STAT_INC(ip6s_exthdrtoolong); \ -- 2.45.0