summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
diff options
context:
space:
mode:
authorLang Cheng <chenglang@huawei.com>2019-11-05 19:07:55 +0800
committerJason Gunthorpe <jgg@mellanox.com>2019-11-08 16:37:53 -0400
commit16a11e0bffcab729bd2e8f315e1252e7ef3ddf33 (patch)
tree873e4805501e95fd235858858793b1b1aab6456e /drivers/infiniband/hw/hns/hns_roce_hw_v1.c
parentec6adad0a1e3ef3064c12146b00c2bd1e6835b0c (diff)
downloadtalos-op-linux-16a11e0bffcab729bd2e8f315e1252e7ef3ddf33.tar.gz
talos-op-linux-16a11e0bffcab729bd2e8f315e1252e7ef3ddf33.zip
RDMA/hns: Remove unnecessary structure hns_roce_sqp
Special QP have no differences with normal qp in data structure, so definition of struct hns_roce_sqp should be removed and replaced by struct hns_roce_qp. Link: https://lore.kernel.org/r/1572952082-6681-3-git-send-email-liweihang@hisilicon.com Signed-off-by: Lang Cheng <chenglang@huawei.com> Signed-off-by: Weihang Li <liweihang@hisilicon.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_hw_v1.c')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v1.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
index 5f74bf55f471..bfe9cee8c969 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
@@ -3644,10 +3644,7 @@ int hns_roce_v1_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata)
hns_roce_buf_free(hr_dev, hr_qp->buff_size, &hr_qp->hr_buf);
}
- if (hr_qp->ibqp.qp_type == IB_QPT_RC)
- kfree(hr_qp);
- else
- kfree(hr_to_hr_sqp(hr_qp));
+ kfree(hr_qp);
return 0;
}
OpenPOWER on IntegriCloud