diff options
author | Roland Dreier <rolandd@cisco.com> | 2007-04-10 11:24:36 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-04-10 11:24:36 -0700 |
commit | dd9c48a8ed746cf33a127ae572cecf6240778b67 (patch) | |
tree | 4c45d47b810aa84bf7dda39c0ac65fa66aafa72d | |
parent | 3e19c50ee192dfa998007fc12fab997fc75ff252 (diff) | |
download | libmlx4-dd9c48a8ed746cf33a127ae572cecf6240778b67.tar.gz |
Trivial whitespace cleanups
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | src/mlx4.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -79,7 +79,7 @@ static struct ibv_context_ops mlx4_ctx_ops = { .query_port = mlx4_query_port, .alloc_pd = mlx4_alloc_pd, .dealloc_pd = mlx4_free_pd, - .reg_mr = mlx4_reg_mr, + .reg_mr = mlx4_reg_mr, .dereg_mr = mlx4_dereg_mr, .create_cq = mlx4_create_cq, .poll_cq = mlx4_poll_cq, @@ -106,10 +106,10 @@ static struct ibv_context_ops mlx4_ctx_ops = { static struct ibv_context *mlx4_alloc_context(struct ibv_device *ibdev, int cmd_fd) { - struct mlx4_context *context; - struct ibv_get_context cmd; + struct mlx4_context *context; + struct ibv_get_context cmd; struct mlx4_alloc_ucontext_resp resp; - int i; + int i; context = malloc(sizeof *context); if (!context) @@ -121,9 +121,9 @@ static struct ibv_context *mlx4_alloc_context(struct ibv_device *ibdev, int cmd_ &resp.ibv_resp, sizeof resp)) goto err_free; - context->num_qps = resp.qp_tab_size; + context->num_qps = resp.qp_tab_size; context->qp_table_shift = ffs(context->num_qps) - 1 - MLX4_QP_TABLE_BITS; - context->qp_table_mask = (1 << context->qp_table_shift) - 1; + context->qp_table_mask = (1 << context->qp_table_shift) - 1; pthread_mutex_init(&context->qp_table_mutex, NULL); for (i = 0; i < MLX4_QP_TABLE_SIZE; ++i) @@ -198,8 +198,8 @@ static struct ibv_device *mlx4_driver_init(const char *uverbs_sys_path, { char value[8]; struct mlx4_device *dev; - unsigned vendor, device; - int i; + unsigned vendor, device; + int i; if (ibv_read_sysfs_file(uverbs_sys_path, "device/vendor", value, sizeof value) < 0) |