RDMA/core: Delete duplicated and unreachable code
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 3 Aug 2021 18:20:33 +0000 (21:20 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 3 Aug 2021 18:26:18 +0000 (15:26 -0300)
commit8fc3beebf623092e446f4c88fca1699c868ca86d
tree1d46e25d4e6319827b25bdbab692ef310eed8b14
parent5f6bb7e32283b8e3339b7adc00638234ac199cc4
RDMA/core: Delete duplicated and unreachable code

The ib_create_named_qp() is kernel verb and no kernel users exist that use
XRC_INI QP. Hence such QP path is not reachable. In addition, delete
duplicated assignments of QP attributes from the initialization structure.

Link: https://lore.kernel.org/r/1b4c0d1def5f8f6d26839e14d19da950cc4a0b05.1628014762.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/verbs.c