svn commit: r212152 - head/sys/net
Bjoern A. Zeeb
bz at FreeBSD.org
Thu Sep 2 16:11:12 UTC 2010
Author: bz
Date: Thu Sep 2 16:11:12 2010
New Revision: 212152
URL: http://svn.freebsd.org/changeset/base/212152
Log:
MFp4 CH=183259:
No reason to use if_free_type() as we don't change our type.
Just if_free() is fine.
MFC after: 3 days
Modified:
head/sys/net/if_epair.c
Modified: head/sys/net/if_epair.c
==============================================================================
--- head/sys/net/if_epair.c Thu Sep 2 16:09:46 2010 (r212151)
+++ head/sys/net/if_epair.c Thu Sep 2 16:11:12 2010 (r212152)
@@ -892,9 +892,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-head
mailing list