svn commit: r212287 - stable/8/sys/net

Bjoern A. Zeeb bz at FreeBSD.org
Tue Sep 7 11:46:09 UTC 2010


Author: bz
Date: Tue Sep  7 11:46:09 2010
New Revision: 212287
URL: http://svn.freebsd.org/changeset/base/212287

Log:
  MFC r212152:
  
    MFp4 CH=183259:
  
      No reason to use if_free_type() as we don't change our type.
      Just if_free() is fine.

Modified:
  stable/8/sys/net/if_epair.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/net/if_epair.c
==============================================================================
--- stable/8/sys/net/if_epair.c	Tue Sep  7 08:33:17 2010	(r212286)
+++ stable/8/sys/net/if_epair.c	Tue Sep  7 11:46:09 2010	(r212287)
@@ -901,9 +901,9 @@ epair_clone_destroy(struct if_clone *ifc
 	 * we need to switch before freeing them.
 	 */
 	CURVNET_SET_QUIET(oifp->if_vnet);
-	if_free_type(oifp, IFT_ETHER);
+	if_free(oifp);
 	CURVNET_RESTORE();
-	if_free_type(ifp, IFT_ETHER);
+	if_free(ifp);
 	free(scb, M_EPAIR);
 	free(sca, M_EPAIR);
 	ifc_free_unit(ifc, unit);


More information about the svn-src-all mailing list