svn commit: r297652 - stable/10/sys/ofed/drivers/net/mlx4

Hans Petter Selasky hselasky at FreeBSD.org
Thu Apr 7 07:36:55 UTC 2016


Author: hselasky
Date: Thu Apr  7 07:36:54 2016
New Revision: 297652
URL: https://svnweb.freebsd.org/changeset/base/297652

Log:
  MFC r296987:
  Add missing curly brackets in for loop.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/10/sys/ofed/drivers/net/mlx4/en_port.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/ofed/drivers/net/mlx4/en_port.c
==============================================================================
--- stable/10/sys/ofed/drivers/net/mlx4/en_port.c	Thu Apr  7 07:35:02 2016	(r297651)
+++ stable/10/sys/ofed/drivers/net/mlx4/en_port.c	Thu Apr  7 07:36:54 2016	(r297652)
@@ -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-all mailing list