svn commit: r297653 - stable/9/sys/ofed/drivers/net/mlx4
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Apr 7 07:38:19 UTC 2016
Author: hselasky
Date: Thu Apr 7 07:38:18 2016
New Revision: 297653
URL: https://svnweb.freebsd.org/changeset/base/297653
Log:
MFC r296987:
Add missing curly brackets in for loop.
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/ofed/drivers/net/mlx4/en_port.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/ofed/drivers/net/mlx4/en_port.c
==============================================================================
--- stable/9/sys/ofed/drivers/net/mlx4/en_port.c Thu Apr 7 07:36:54 2016 (r297652)
+++ stable/9/sys/ofed/drivers/net/mlx4/en_port.c Thu Apr 7 07:38:18 2016 (r297653)
@@ -60,10 +60,11 @@ int mlx4_SET_VLAN_FLTR(struct mlx4_dev *
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,
More information about the svn-src-stable-9
mailing list