summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-01-30 23:57:47 +0100
committerJason Gunthorpe <jgg@nvidia.com>2022-02-01 15:55:43 +0100
commit0d9c00117b8a57a361b27f7bd94284c94155f039 (patch)
tree990aeb831ce8297c4a3179463f125bfac3865181 /drivers/infiniband/hw/mlx4
parentRDMA/rxe: Remove qp->grp_lock and qp->grp_list (diff)
downloadlinux-0d9c00117b8a57a361b27f7bd94284c94155f039.tar.xz
linux-0d9c00117b8a57a361b27f7bd94284c94155f039.zip
RDMA/mlx4: remove redundant assignment to variable nreq
Variable nreq is being assigned a value that is never read. The assignment is redundant and can be removed. Link: https://lore.kernel.org/r/20220130225747.8114-1-colin.i.king@gmail.com Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4')
-rw-r--r--drivers/infiniband/hw/mlx4/srq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/srq.c b/drivers/infiniband/hw/mlx4/srq.c
index 6a381751c0d8..c4cf91235eee 100644
--- a/drivers/infiniband/hw/mlx4/srq.c
+++ b/drivers/infiniband/hw/mlx4/srq.c
@@ -320,7 +320,6 @@ int mlx4_ib_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr,
if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) {
err = -EIO;
*bad_wr = wr;
- nreq = 0;
goto out;
}