summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-07-05 03:34:54 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-07-05 03:34:54 +0000
commite8fc3778411bef6658190e756e9e4bddab7d168d (patch)
treeb248337b102d70f83c927f367a4541b35fe394b6 /sys
parentb3a81ad5e1ba32edab214001f2968a054980dadd (diff)
move a declaration before a statement.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_aggr.c3
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;