diff options
author | hselasky <hselasky@FreeBSD.org> | 2016-04-07 07:36:54 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2016-04-07 07:36:54 +0000 |
commit | 1c1fa6f80e0eca67019f860a29eee7532a2a5806 (patch) | |
tree | fe271331ff9d35636a40806daa0e2f9c2640f698 | |
parent | 09c7580f482856c8c366924a13b520a6c265d018 (diff) | |
download | FreeBSD-src-1c1fa6f80e0eca67019f860a29eee7532a2a5806.zip FreeBSD-src-1c1fa6f80e0eca67019f860a29eee7532a2a5806.tar.gz |
MFC r296987:
Add missing curly brackets in for loop.
Sponsored by: Mellanox Technologies
-rw-r--r-- | sys/ofed/drivers/net/mlx4/en_port.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ofed/drivers/net/mlx4/en_port.c b/sys/ofed/drivers/net/mlx4/en_port.c index 6c71962..d888bdb 100644 --- a/sys/ofed/drivers/net/mlx4/en_port.c +++ b/sys/ofed/drivers/net/mlx4/en_port.c @@ -60,10 +60,11 @@ int mlx4_SET_VLAN_FLTR(struct mlx4_dev *dev, struct mlx4_en_priv *priv) memset(filter, 0, sizeof(*filter)); for (i = VLAN_FLTR_SIZE - 1; i >= 0; i--) { entry = 0; - for (j = 0; j < 32; j++) + for (j = 0; j < 32; j++) { if (test_bit(index, priv->active_vlans)) entry |= 1 << j; - index++; + index++; + } filter->entry[i] = cpu_to_be32(entry); } err = mlx4_cmd(dev, mailbox->dma, priv->port, 0, MLX4_CMD_SET_VLAN_FLTR, |