mlx4_core: Fix some indenting in mlx4_ib_add()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Mar 2014 08:21:39 +0000 (11:21 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 1 Apr 2014 17:52:18 +0000 (10:52 -0700)
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>
drivers/infiniband/hw/mlx4/main.c

index e81c5547e6479a87683dba621c169529f4209d5a..6eb0d442a8057724ce0322f032e36145115343e5 100644 (file)
@@ -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)
This page took 0.025398 seconds and 5 git commands to generate.