Date: Fri, 20 May 2016 12:09:11 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300297 - head/sys/netinet6 Message-ID: <201605201209.u4KC9BN0085934@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Fri May 20 12:09:10 2016 New Revision: 300297 URL: https://svnweb.freebsd.org/changeset/base/300297 Log: Remove ip6 pointer initialization and strange check from the beginning of ip6_output(). It isn't used until the first time adjusted. Remove the comment about adjusting where it is actually initialized. Modified: head/sys/netinet6/ip6_output.c Modified: head/sys/netinet6/ip6_output.c ============================================================================== --- head/sys/netinet6/ip6_output.c Fri May 20 11:56:16 2016 (r300296) +++ head/sys/netinet6/ip6_output.c Fri May 20 12:09:10 2016 (r300297) @@ -325,12 +325,6 @@ ip6_output(struct mbuf *m0, struct ip6_p struct m_tag *fwd_tag = NULL; uint32_t id; - ip6 = mtod(m, struct ip6_hdr *); - if (ip6 == NULL) { - printf ("ip6 is NULL"); - goto bad; - } - if (inp != NULL) { M_SETFIB(m, inp->inp_inc.inc_fibnum); if ((flags & IP_NODEFAULTFLOWID) == 0) { @@ -412,7 +406,6 @@ ip6_output(struct mbuf *m0, struct ip6_p hdrsplit++; } - /* adjust pointer */ ip6 = mtod(m, struct ip6_hdr *); /* adjust mbuf packet header length */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605201209.u4KC9BN0085934>