aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/infiniband/sw
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@mykernel.net>2022-03-07 22:50:47 +0800
committerJason Gunthorpe <jgg@nvidia.com>2022-03-14 20:36:01 -0300
commitaaaf62e066231f68f937990bc99f728576a2eab5 (patch)
tree00cbe766045b246fc8a65d0ddcf4f706670f87bb /drivers/infiniband/sw
parentRDMA/rxe: Change variable and function argument to proper type (diff)
downloadwireguard-linux-aaaf62e066231f68f937990bc99f728576a2eab5.tar.xz
wireguard-linux-aaaf62e066231f68f937990bc99f728576a2eab5.zip
RDMA/rxe: Remove useless argument for update_state()
The argument 'payload' is not used in update_state(), so just remove it. Link: https://lore.kernel.org/r/20220307145047.3235675-2-cgxu519@mykernel.net Signed-off-by: Chengguang Xu <cgxu519@mykernel.net> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Acked-by: Zhu Yanjun <zyjzyj2000@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_req.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c
index b28036a7a3b8..a3c78b4ac9f1 100644
--- a/drivers/infiniband/sw/rxe/rxe_req.c
+++ b/drivers/infiniband/sw/rxe/rxe_req.c
@@ -540,7 +540,7 @@ static void rollback_state(struct rxe_send_wqe *wqe,
}
static void update_state(struct rxe_qp *qp, struct rxe_send_wqe *wqe,
- struct rxe_pkt_info *pkt, u32 payload)
+ struct rxe_pkt_info *pkt)
{
qp->req.opcode = pkt->opcode;
@@ -747,7 +747,7 @@ next_wqe:
goto err;
}
- update_state(qp, wqe, &pkt, payload);
+ update_state(qp, wqe, &pkt);
goto next_wqe;