summaryrefslogtreecommitdiffstats
path: root/sys/net/bridgestp.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2006-08-02 02:51:42 +0000
committerthompsa <thompsa@FreeBSD.org>2006-08-02 02:51:42 +0000
commit506dd25cdf2fa6a53bd4ded80042c01d39c7c310 (patch)
treec15b637ecfcb184f2a1ccd1ce01840ac0c191e86 /sys/net/bridgestp.c
parent1b5eb404f16c470940b710c07045e08bd5ffc18c (diff)
downloadFreeBSD-src-506dd25cdf2fa6a53bd4ded80042c01d39c7c310.zip
FreeBSD-src-506dd25cdf2fa6a53bd4ded80042c01d39c7c310.tar.gz
Fix style in the last commit, the variable declaration goes at the top of the
function.
Diffstat (limited to 'sys/net/bridgestp.c')
-rw-r--r--sys/net/bridgestp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index fc59ea8..ba5c463 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);
OpenPOWER on IntegriCloud