Skip to contentSkip to conversation

RDMA/mlx4: remove redundant assignment to variable nreq

PATCH Applied Colin Ian King 2 participants 2 messages Jan 30, 2022 – Feb 1, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/infiniband/hw/mlx4/srq.c | 1 -
 1 file changed, 1 deletion(-)
drivers/infiniband/hw/mlx4/srq.c +0 -1
index 6a381751c0d8..c4cf91235eee 100644
@@ -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;
 	}
 
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 7 lines · Colin Ian King

Variable nreq is being assigned a value that is never read. The assignment is redundant and can be removed.

---
 drivers/infiniband/hw/mlx4/srq.c | 1 -
 1 file changed, 1 deletion(-)

Applied to for-next, thanks

Jason