From: Dan Carpenter Date: Fri, 28 Mar 2014 08:21:39 +0000 (+0300) Subject: mlx4_core: Fix some indenting in mlx4_ib_add() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3839d8ac1bac55922f6632e36040fdc0de374bba;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Roland Dreier --- 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)