diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-05-07 16:16:10 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-05-07 21:02:58 -0300 |
commit | 52c81f47f0d2680f0b2e7b61c1fa4d8ad35f3020 (patch) | |
tree | 92e6920ea5e56917704d3e7d3f1e5b063f4221cf /drivers/infiniband/hw/mlx5 | |
parent | 42caf9cb59370cc6f296c7a9fe39fa66963236ff (diff) | |
download | lwn-52c81f47f0d2680f0b2e7b61c1fa4d8ad35f3020.tar.gz lwn-52c81f47f0d2680f0b2e7b61c1fa4d8ad35f3020.zip |
RDMA/mlx5: Remove duplicated assignment to variable rcqe_sz
The variable rcqe_sz is being unnecessarily assigned twice, fix this by
removing one of the duplicates.
Fixes: 8bde2c509e40 ("RDMA/mlx5: Update all DRIVER QP places to use QP subtype")
Link: https://lore.kernel.org/r/20200507151610.52636-1-colin.king@canonical.com
Addresses-Coverity: ("Evaluation order violation")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r-- | drivers/infiniband/hw/mlx5/qp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index 40150595fdbb..c571b7a97f10 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -1994,8 +1994,7 @@ static int create_user_qp(struct mlx5_ib_dev *dev, struct ib_pd *pd, if ((qp->flags_en & MLX5_QP_FLAG_SCATTER_CQE) && (init_attr->qp_type == IB_QPT_RC || init_attr->qp_type == IB_QPT_UC)) { - int rcqe_sz = rcqe_sz = - mlx5_ib_get_cqe_size(init_attr->recv_cq); + int rcqe_sz = mlx5_ib_get_cqe_size(init_attr->recv_cq); MLX5_SET(qpc, qpc, cs_res, rcqe_sz == 128 ? MLX5_RES_SCAT_DATA64_CQE : |