RDMA/rxe: Remove useless parameters for update_state()
authorLi Zhijian <lizhijian@fujitsu.com>
Tue, 12 Apr 2022 02:29:01 +0000 (10:29 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 25 Apr 2022 18:51:32 +0000 (15:51 -0300)
wqe was not used by update_state() so far.

Commit aaaf62e06623 ("RDMA/rxe: Remove useless argument for
update_state()") just did a partial fixes.

Link: https://lore.kernel.org/r/20220412022903.574238-1-lizhijian@fujitsu.com
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_req.c

index e265966..e01c563 100644 (file)
@@ -525,8 +525,7 @@ static void rollback_state(struct rxe_send_wqe *wqe,
        qp->req.psn    = rollback_psn;
 }
 
-static void update_state(struct rxe_qp *qp, struct rxe_send_wqe *wqe,
-                        struct rxe_pkt_info *pkt)
+static void update_state(struct rxe_qp *qp, struct rxe_pkt_info *pkt)
 {
        qp->req.opcode = pkt->opcode;
 
@@ -753,7 +752,7 @@ next_wqe:
                goto err;
        }
 
-       update_state(qp, wqe, &pkt);
+       update_state(qp, &pkt);
 
        goto next_wqe;