1
0
Fork 0

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>
hifive-unleashed-5.1
Dan Carpenter 2014-03-28 11:21:39 +03:00 committed by Roland Dreier
parent 2c34e68f42
commit 3839d8ac1b
1 changed files with 3 additions and 2 deletions

View 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)