diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-07-05 03:34:54 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-07-05 03:34:54 +0000 |
commit | e8fc3778411bef6658190e756e9e4bddab7d168d (patch) | |
tree | b248337b102d70f83c927f367a4541b35fe394b6 /sys | |
parent | b3a81ad5e1ba32edab214001f2968a054980dadd (diff) |
move a declaration before a statement.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_aggr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_aggr.c b/sys/net/if_aggr.c index a3df069efa0..5ba024ac5b7 100644 --- a/sys/net/if_aggr.c +++ b/sys/net/if_aggr.c @@ -2279,9 +2279,10 @@ static int aggr_iff(struct aggr_softc *sc) { struct ifnet *ifp = &sc->sc_if; - NET_ASSERT_LOCKED(); unsigned int promisc = ISSET(ifp->if_flags, IFF_PROMISC); + NET_ASSERT_LOCKED(); + if (promisc != sc->sc_promisc) { struct aggr_port *p; |