Author: hselasky
Date: Thu Mar 17 12:30:21 2016
New Revision: 296987
URL: https://svnweb.freebsd.org/changeset/base/296987

Log:
  Add missing curly brackets in for loop.
  
  Sponsored by: Mellanox Technologies
  MFC after:    1 week

Modified:
  head/sys/ofed/drivers/net/mlx4/en_port.c

Modified: head/sys/ofed/drivers/net/mlx4/en_port.c
==============================================================================
--- head/sys/ofed/drivers/net/mlx4/en_port.c    Thu Mar 17 11:10:44 2016        
(r296986)
+++ head/sys/ofed/drivers/net/mlx4/en_port.c    Thu Mar 17 12:30:21 2016        
(r296987)
@@ -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,
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to