RDMA/hns: Remove unnecessary QP type checks
authorJunxian Huang <huangjunxian6@hisilicon.com>
Tue, 23 May 2023 12:16:39 +0000 (20:16 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Jun 2023 22:58:47 +0000 (19:58 -0300)
commitb9989ab3f61ec459cbaf0a492fea3168bbfa4c7a
tree080c55ef9186f95db57f1a8e7a1b2ec53a381c90
parent95ea2efbd66fb9e85238bd8d59341f8ce7a31065
RDMA/hns: Remove unnecessary QP type checks

It is not necessary to check the type of the queue on IO path because
unsupported QP type cannot be created.

Link: https://lore.kernel.org/r/20230523121641.3132102-2-huangjunxian6@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c