Skip to content

Commit

Permalink
mlx4_core: Fix some indenting in mlx4_ib_add()
Browse files Browse the repository at this point in the history
The code was indented too far and also kernel style says we should have
curly braces.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Dan Carpenter authored and Roland Dreier committed Apr 1, 2014
1 parent 2c34e68 commit 3839d8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/infiniband/hw/mlx4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2056,8 +2056,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)
Expand Down

0 comments on commit 3839d8a

Please sign in to comment.