svn commit: r254831 - head/sys/net

Andre Oppermann andre at FreeBSD.org
Sun Aug 25 09:41:38 UTC 2013


Author: andre
Date: Sun Aug 25 09:41:37 2013
New Revision: 254831
URL: http://svnweb.freebsd.org/changeset/base/254831

Log:
  Remove unnecessary setup of the m->pkthdr.header pointer.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/net/if_fddisubr.c
  head/sys/net/if_iso88025subr.c

Modified: head/sys/net/if_fddisubr.c
==============================================================================
--- head/sys/net/if_fddisubr.c	Sun Aug 25 09:40:15 2013	(r254830)
+++ head/sys/net/if_fddisubr.c	Sun Aug 25 09:41:37 2013	(r254831)
@@ -390,7 +390,6 @@ fddi_input(ifp, m)
 		goto dropanyway;
 	}
 	fh = mtod(m, struct fddi_header *);
-	m->m_pkthdr.header = (void *)fh;
 
 	/*
 	 * Discard packet if interface is not up.

Modified: head/sys/net/if_iso88025subr.c
==============================================================================
--- head/sys/net/if_iso88025subr.c	Sun Aug 25 09:40:15 2013	(r254830)
+++ head/sys/net/if_iso88025subr.c	Sun Aug 25 09:41:37 2013	(r254831)
@@ -476,7 +476,6 @@ iso88025_input(ifp, m)
 		goto dropanyway;
 	}
 	th = mtod(m, struct iso88025_header *);
-	m->m_pkthdr.header = (void *)th;
 
 	/*
 	 * Discard packet if interface is not up.


More information about the svn-src-head mailing list