RDMA/cma: Consolidate the destruction of a cma_multicast in one place
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 2 Sep 2020 08:11:21 +0000 (11:11 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 17 Sep 2020 12:09:24 +0000 (09:09 -0300)
commit3788d2997bc0150ea911a964d5b5a2e11808a936
treee83f22b66500dc3bf202f6c5a3048fbd2bc08003
parent1bb5091def706732c749df9aae45fbca003696f2
RDMA/cma: Consolidate the destruction of a cma_multicast in one place

Two places were open coding this sequence, and also pull in
cma_leave_roce_mc_group() which was called only once.

Link: https://lore.kernel.org/r/20200902081122.745412-8-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cma.c