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/dev | |
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/dev')
-rw-r--r-- | sys/dev/lmc/if_lmc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c index d5fb9ba..40dc1e5 100644 --- a/sys/dev/lmc/if_lmc.c +++ b/sys/dev/lmc/if_lmc.c @@ -4945,7 +4945,9 @@ lmc_ifnet_detach(softc_t *sc) /* Detach from the ifnet kernel interface. */ if_detach(sc->ifp); -# if (__FreeBSD_version >= 600000) +# if (defined(__FreeBSD__) && __FreeBSD_version >= 800082) + if_free(sc->ifp); +# elif (defined(__FreeBSD__) && __FreeBSD_version >= 600000) if_free_type(sc->ifp, NSPPP ? IFT_PPP : IFT_OTHER); # endif } |