]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cm: Remove return code from add_cm_id_to_port_list
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 07:46:53 +0000 (10:46 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 13 May 2020 00:32:53 +0000 (21:32 -0300)
commit40a300ec9c1574dc8dd74f8824c3433ff90b04cf
tree7d3b8c1e32ad6ff7301bab3be36e9ed9a0309dce
parentab339c8ebb9f81143ec825a3825106e7e32a8e92
RDMA/cm: Remove return code from add_cm_id_to_port_list

This cannot happen, all callers pass in one of the two pointers. Use
a WARN_ON guard instead.

Link: https://lore.kernel.org/r/20200506074701.9775-3-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c