diff --git a/sys/netinet/in_mcast.c b/sys/netinet/in_mcast.c index 0b22980f8838..b0d53b02ab54 100644 --- a/sys/netinet/in_mcast.c +++ b/sys/netinet/in_mcast.c @@ -1178,11 +1178,8 @@ in_joingroup_locked(struct ifnet *ifp, const struct in_addr *gina, int in_leavegroup(struct in_multi *inm, /*const*/ struct in_mfilter *imf) { - struct ifnet *ifp; int error; - ifp = inm->inm_ifp; - IN_MULTI_LOCK(); error = in_leavegroup_locked(inm, imf); IN_MULTI_UNLOCK();