RDMA/hns: Remove unnecessary access right set during INIT2INIT
authorYixian Liu <liuyixian@huawei.com>
Fri, 11 Dec 2020 01:37:32 +0000 (09:37 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Dec 2020 19:21:34 +0000 (15:21 -0400)
commit29b52027ac354f2a0e5c4d17ca1b621a1644949d
treeea8f63eb6d27ea0de838ae72a27928b94c633eaa
parentf75506833eed65cc537293508b7edd5788d67e23
RDMA/hns: Remove unnecessary access right set during INIT2INIT

As the qp access right is checked and setted in common function
hns_roce_v2_set_opt_fields(), there is no need to set again for a special
case INIT2INIT.

Fixes: 926a01dc000d ("RDMA/hns: Add QP operations support for hip08 SoC")
Fixes: 7db82697b8bf ("RDMA/hns: Add support for extended atomic in userspace")
Link: https://lore.kernel.org/r/1607650657-35992-7-git-send-email-liweihang@huawei.com
Signed-off-by: Yixian Liu <liuyixian@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