]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
RDMA/hns: Remove unused parameters
authorChengchang Tang <tangchengchang@huawei.com>
Thu, 27 Mar 2025 11:47:23 +0000 (19:47 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Apr 2025 18:29:53 +0000 (15:29 -0300)
Remove unused parameters.

Link: https://patch.msgid.link/r/20250327114724.3454268-2-huangjunxian6@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c

index 160e8927d364e1fcc37b38f665b224c5ed774b90..0600e87936bf3849dc77d8d4b88e4d565c4e2d28 100644 (file)
@@ -4302,8 +4302,7 @@ static inline int get_pdn(struct ib_pd *ib_pd)
 }
 
 static void modify_qp_reset_to_init(struct ib_qp *ibqp,
-                                   struct hns_roce_v2_qp_context *context,
-                                   struct hns_roce_v2_qp_context *qpc_mask)
+                                   struct hns_roce_v2_qp_context *context)
 {
        struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
        struct hns_roce_qp *hr_qp = to_hr_qp(ibqp);
@@ -5122,7 +5121,7 @@ static int hns_roce_v2_set_abs_fields(struct ib_qp *ibqp,
 
        if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
                memset(qpc_mask, 0, hr_dev->caps.qpc_sz);
-               modify_qp_reset_to_init(ibqp, context, qpc_mask);
+               modify_qp_reset_to_init(ibqp, context);
        } else if (cur_state == IB_QPS_INIT && new_state == IB_QPS_INIT) {
                modify_qp_init_to_init(ibqp, context, qpc_mask);
        } else if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {