Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Apr 2016 07:38:18 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r297653 - stable/9/sys/ofed/drivers/net/mlx4
Message-ID:  <201604070738.u377cIYu079382@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604070738.u377cIYu079382>