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)
commitc2fcafa78a33576b7fe47f5e4f85d413a62c2fe2
tree78f8b34614c47e8506ee8ac9d57dcd44981c9d71
parent98c8026331ceabe1df579940b81eec75eb49cdd9
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: 606bf89e98ef ("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