Skip to contentSkip to conversation

net/mlx4: fix some indenting in mlx4_ib_add()

PATCH New Dan Carpenter 1 participant 1 message Mar 28, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 net/mlx4: fix some indenting in mlx4_ib_add()

The code was indented too far and also kernel style says we should have curly braces.

drivers/infiniband/hw/mlx4/main.c +3 -2
index 6cb8546..8d9d6b8 100644
@@ -2048,8 +2048,9 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
 			err = mlx4_counter_alloc(ibdev->dev, &ibdev->counters[i]);
 			if (err)
 				ibdev->counters[i] = -1;
-		} else
-				ibdev->counters[i] = -1;
+		} else {
+			ibdev->counters[i] = -1;
+		}
 	}
 
 	mlx4_foreach_port(i, dev, MLX4_PORT_TYPE_IB)