net/mlx4: fix some indenting in mlx4_ib_add()
Subsystems (3)
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.
Signed-off-by Dan Carpenter <[email protected]>
drivers/infiniband/hw/mlx4/main.c +3 -2
@@ -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 )