From 1ab2650f3c18133923f3fef0f8a2b33a8a151d18 Mon Sep 17 00:00:00 2001 From: mav Date: Tue, 2 May 2017 19:30:42 +0000 Subject: MFC r317279: Remove unneeded conditions. --- sys/net/if_lagg.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'sys/net') diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index f27d148..dc3e0cc 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -433,10 +433,8 @@ lagg_register_vlan(void *arg, struct ifnet *ifp, u_int16_t vtag) return; LAGG_RLOCK(sc, &tracker); - if (!SLIST_EMPTY(&sc->sc_ports)) { - SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) - EVENTHANDLER_INVOKE(vlan_config, lp->lp_ifp, vtag); - } + SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) + EVENTHANDLER_INVOKE(vlan_config, lp->lp_ifp, vtag); LAGG_RUNLOCK(sc, &tracker); } @@ -455,10 +453,8 @@ lagg_unregister_vlan(void *arg, struct ifnet *ifp, u_int16_t vtag) return; LAGG_RLOCK(sc, &tracker); - if (!SLIST_EMPTY(&sc->sc_ports)) { - SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) - EVENTHANDLER_INVOKE(vlan_unconfig, lp->lp_ifp, vtag); - } + SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) + EVENTHANDLER_INVOKE(vlan_unconfig, lp->lp_ifp, vtag); LAGG_RUNLOCK(sc, &tracker); } -- cgit v1.1