]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Remove unnecessary check for the sgid_attr when modifying QP
authorChengchang Tang <tangchengchang@huawei.com>
Sat, 9 Apr 2022 08:32:50 +0000 (16:32 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 11 Apr 2022 14:00:33 +0000 (11:00 -0300)
commitc32664ab630217665250749235444188ed70837a
tree78f8b34614c47e8506ee8ac9d57dcd44981c9d71
parentd799ee9348185c297e0d71eeda41e4840a0c2976
RDMA/hns: Remove unnecessary check for the sgid_attr when modifying QP

The sgid_attr cannot be null in this scenario. This judgment is redundant.

Fixes: a429a8c71a0d ("RDMA/hns: Refactor for hns_roce_v2_modify_qp function")
Link: https://lore.kernel.org/r/20220409083254.9696-2-liangwenpeng@huawei.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c