From: Leon Romanovsky <leonro@xxxxxxxxxxxx> There is macro defined to mark CQE version 1, so let's use it. Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> Reviewed-by: Majd Dibbiny <majd@xxxxxxxxxxxx> Acked-by: Yishai Hadas <yishaih@xxxxxxxxxxxx> --- providers/mlx5/mlx5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/mlx5/mlx5.c b/providers/mlx5/mlx5.c index 1cf5a5f..980e4df 100644 --- a/providers/mlx5/mlx5.c +++ b/providers/mlx5/mlx5.c @@ -771,7 +771,7 @@ static int mlx5_init_context(struct verbs_device *vdev, context->cqe_version = resp.cqe_version; if (context->cqe_version) { - if (context->cqe_version == 1) + if (context->cqe_version == MLX5_CQE_VERSION_V1) mlx5_ctx_ops.poll_cq = mlx5_poll_cq_v1; else goto err_free_bf; -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html