RDMA/hns: Refactor process of posting CMDQ
authorLang Cheng <chenglang@huawei.com>
Sun, 7 Feb 2021 08:55:43 +0000 (16:55 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 16 Feb 2021 18:42:58 +0000 (14:42 -0400)
commit5e9914c003885402a3eb138204dba3eea997ecde
tree7cdf576a9850f8e5423331b5a7bb2c7a6bb80c12
parent292b3352bd5bd0abeba3e8e7b5ae5acb8f7df4e0
RDMA/hns: Refactor process of posting CMDQ

Simplify __hns_roce_cmq_send() then remove the redundant variables.

Link: https://lore.kernel.org/r/1612688143-28226-6-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c