From 516b37d308f95615b19be4f199df02d201d48c92 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Wed, 2 Aug 2006 02:51:42 +0000 Subject: [PATCH] Fix style in the last commit, the variable declaration goes at the top of the function. --- sys/net/bridgestp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index fc59ea838553..ba5c463809cd 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -529,9 +529,10 @@ bstp_make_blocking(struct bstp_state *bs, struct bstp_port *bp) static void bstp_set_port_state(struct bstp_port *bp, uint8_t state) { - bp->bp_state = state; struct bstp_state *bs = bp->bp_bs; + bp->bp_state = state; + /* notify the parent bridge */ if (bs->bs_state_cb != NULL) taskqueue_enqueue(taskqueue_swi, &bp->bp_statetask);