Date: Tue, 2 May 2017 19:30:42 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r317699 - stable/11/sys/net Message-ID: <201705021930.v42JUgsT025202@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Tue May 2 19:30:42 2017 New Revision: 317699 URL: https://svnweb.freebsd.org/changeset/base/317699 Log: MFC r317279: Remove unneeded conditions. Modified: stable/11/sys/net/if_lagg.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/net/if_lagg.c ============================================================================== --- stable/11/sys/net/if_lagg.c Tue May 2 19:30:05 2017 (r317698) +++ stable/11/sys/net/if_lagg.c Tue May 2 19:30:42 2017 (r317699) @@ -433,10 +433,8 @@ lagg_register_vlan(void *arg, struct ifn 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 i 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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705021930.v42JUgsT025202>