diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2012-10-28 12:21:58 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2012-10-28 12:21:58 +0000 |
commit | 37bb6bdc802e997747ac5e827c1d7296359d2023 (patch) | |
tree | 4549be8709123bfb6f91e9c5e592aa00ca4aa63b /sys/dev/pci/if_ix.c | |
parent | 96a0c84e5cc86bb772de2c7ade29d86a44b114a4 (diff) |
Add braces to some code in ixgbe_setup_vlan_hw_support().
ok mikeb@
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r-- | sys/dev/pci/if_ix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c index 7e146b41519..fec2f52d427 100644 --- a/sys/dev/pci/if_ix.c +++ b/sys/dev/pci/if_ix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ix.c,v 1.71 2012/08/13 13:14:50 mikeb Exp $ */ +/* $OpenBSD: if_ix.c,v 1.72 2012/10/28 12:21:57 brad Exp $ */ /****************************************************************************** @@ -3207,10 +3207,11 @@ ixgbe_setup_vlan_hw_support(struct ix_softc *sc) * A soft reset zero's out the VFTA, so * we need to repopulate it now. */ - for (i = 0; i < IXGBE_VFTA_SIZE; i++) + for (i = 0; i < IXGBE_VFTA_SIZE; i++) { if (sc->shadow_vfta[i] != 0) IXGBE_WRITE_REG(&sc->hw, IXGBE_VFTA(i), sc->shadow_vfta[i]); + } ctrl = IXGBE_READ_REG(&sc->hw, IXGBE_VLNCTRL); #if 0 @@ -3225,13 +3226,13 @@ ixgbe_setup_vlan_hw_support(struct ix_softc *sc) IXGBE_WRITE_REG(&sc->hw, IXGBE_VLNCTRL, ctrl); /* On 82599 the VLAN enable is per/queue in RXDCTL */ - if (sc->hw.mac.type != ixgbe_mac_82598EB) + if (sc->hw.mac.type != ixgbe_mac_82598EB) { for (i = 0; i < sc->num_queues; i++) { ctrl = IXGBE_READ_REG(&sc->hw, IXGBE_RXDCTL(i)); ctrl |= IXGBE_RXDCTL_VME; IXGBE_WRITE_REG(&sc->hw, IXGBE_RXDCTL(i), ctrl); } - + } } void |