]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Delete unnecessary branch of hns_roce_v2_query_qp
authorYangyang Li <liyangyang20@huawei.com>
Fri, 18 Jun 2021 10:10:15 +0000 (18:10 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 18:17:06 +0000 (15:17 -0300)
commit90db70a82e6321be91b6467029e7d484ae656633
tree6ae502cacb5e6e4ddf508ade57147596786baec8
parenta9c60b45790dd1165dc4adcb6e9aa39c64359bd0
RDMA/hns: Delete unnecessary branch of hns_roce_v2_query_qp

When query_qp is called by userspace, max_send_wr and max_send_sge are set
to 0 by the kernel driver. However, the userspace does not use these two
return values from the kernel driver, but uses its own calculated values.
So there is no need for special treatment.

Fixes: a15a80b5af7a ("RDMA/hns: Add QP operations support for hip08 SoC")
Link: https://lore.kernel.org/r/1624011020-16992-6-git-send-email-liweihang@huawei.com
Signed-off-by: Yangyang Li <liyangyang20@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