RDMA/rxe: Remove useless argument for update_state()
authorChengguang Xu <cgxu519@mykernel.net>
Mon, 7 Mar 2022 14:50:47 +0000 (22:50 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 14 Mar 2022 23:36:01 +0000 (20:36 -0300)
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>
drivers/infiniband/sw/rxe/rxe_req.c

index b28036a7a3b8c821b4399952c2e9ac85eff754e3..a3c78b4ac9f1c6e183e6e154cb9a6ec915b1e80e 100644 (file)
@@ -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;