summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-03-28 09:21:39 +0100
committerRoland Dreier <roland@purestorage.com>2014-04-01 19:52:18 +0200
commit3839d8ac1bac55922f6632e36040fdc0de374bba (patch)
tree21d11eac026d76d1cdfb04c519228e259b6c4301 /drivers/infiniband
parentIB/mad: Check and handle potential DMA mapping errors (diff)
downloadlinux-3839d8ac1bac55922f6632e36040fdc0de374bba.tar.xz
linux-3839d8ac1bac55922f6632e36040fdc0de374bba.zip
mlx4_core: 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 <dan.carpenter@oracle.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/mlx4/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index e81c5547e647..6eb0d442a805 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -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)