RDMA/hns: Remove redundant judgment of qp_type
authorWeihang Li <liweihang@huawei.com>
Fri, 20 Mar 2020 03:23:42 +0000 (11:23 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Mar 2020 19:52:29 +0000 (16:52 -0300)
commite0b0722643fc3bb7e2401a868cc28e65c31ce07d
treee14dcb3829513ae71eecb8675b765f9d25760ed6
parentcd4a70bb7d19063f63c8189bef08e2149f116ef0
RDMA/hns: Remove redundant judgment of qp_type

Type of qp has been checked in check_send_valid(), so this judgment should
be removed.

Link: https://lore.kernel.org/r/1584674622-52773-11-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c