]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/iwcm: Simplify cm_work_handler()
authorBart Van Assche <bvanassche@acm.org>
Wed, 5 Jun 2024 14:51:00 +0000 (08:51 -0600)
committerLeon Romanovsky <leon@kernel.org>
Sun, 9 Jun 2024 08:15:27 +0000 (11:15 +0300)
commita1babdb5b615751ef5ace97a37f35d0ae40fbf13
tree1b360db97dc8174ae40cbda6ccf83c7265f322bc
parente1168f09b3314992f1c5251f3793102035da7237
RDMA/iwcm: Simplify cm_work_handler()

Instead of complicating the code to avoid a spin_lock_irqsave() /
spin_lock_irqrestore() pair before returning, simplify the code by removing
the local variable 'empty'.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240605145117.397751-5-bvanassche@acm.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/iwcm.c