IB/cm: Refactor cm_insert_listen() and cm_find_listen()
authorMark Zhang <markzhang@nvidia.com>
Fri, 19 Aug 2022 09:08:59 +0000 (12:08 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 30 Aug 2022 09:14:23 +0000 (12:14 +0300)
commit637ff8ea00a20dd731110c9cdbef0e41c050607d
treed3720081f981f5d9ea8d499371773fa159c0a52c
parenta461b746c5768b9b3001045cff2d508346f5f789
IB/cm: Refactor cm_insert_listen() and cm_find_listen()

Move the device and service_id match code at the top of
cm_insert_listen() and cm_find_listen() into the final else branch.

Link: https://lore.kernel.org/r/20220819090859.957943-4-markzhang@nvidia.com
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/cm.c