RDMA/hns: Simplify the judgment in hns_roce_v2_post_send()
authorYixing Liu <liuyixing1@huawei.com>
Fri, 18 Jun 2021 10:10:19 +0000 (18:10 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 18:17:08 +0000 (15:17 -0300)
commitcf7d00bff439490fa65fc192a43d913987105adc
tree5909d957772b057a30cb3a96f700b19661c2b2e8
parentc462a0242bd938967c9a69c41364f80e188c1a7a
RDMA/hns: Simplify the judgment in hns_roce_v2_post_send()

The QP type has been checked in check_send_valid(), if it's not RC, it
will process the UD/GSI branch.

Link: https://lore.kernel.org/r/1624011020-16992-10-git-send-email-liweihang@huawei.com
Signed-off-by: Yixing Liu <liuyixing1@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