diff options
author | brooks <brooks@FreeBSD.org> | 2011-11-11 22:57:52 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2011-11-11 22:57:52 +0000 |
commit | e4a4d6436f0f0ff5634e11e201ea62c8556c6be0 (patch) | |
tree | 9c3d4771af4bc09f8669c0cc5c55575e14b30711 /sys/net/if_vlan.c | |
parent | 8710aaed7e5126453e85553f99198552d4e65810 (diff) | |
download | FreeBSD-src-e4a4d6436f0f0ff5634e11e201ea62c8556c6be0.zip FreeBSD-src-e4a4d6436f0f0ff5634e11e201ea62c8556c6be0.tar.gz |
In r191367 the need for if_free_type() was removed and a new member
if_alloctype was used to store the origional interface type. Take
advantage of this change by removing all existing uses of if_free_type()
in favor of if_free().
MFC after: 1 Month
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index e2eb38b..083086e 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -967,7 +967,7 @@ vlan_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) */ ether_ifdetach(ifp); vlan_unconfig(ifp); - if_free_type(ifp, IFT_ETHER); + if_free(ifp); ifc_free_unit(ifc, unit); free(ifv, M_VLAN); @@ -989,7 +989,7 @@ vlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) ether_ifdetach(ifp); /* first, remove it from system-wide lists */ vlan_unconfig(ifp); /* now it can be unconfigured and freed */ - if_free_type(ifp, IFT_ETHER); + if_free(ifp); free(ifv, M_VLAN); ifc_free_unit(ifc, unit); |