OSDN Git Service

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)
commitd3552fb65d239be4775dc9b24740efd1bd70b459
tree7d3b8c1e32ad6ff7301bab3be36e9ed9a0309dce
parentf8f2a576cb0c574044c049210ea4096e5cb1d7fc
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