]> 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)
commit789fc828f76b12ac25276dd984aeb7859943b66c
tree7d3b8c1e32ad6ff7301bab3be36e9ed9a0309dce
parentaa4f8ab827b9887330c5195852a90b6c5613fb51
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