]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IB/usnic: Simplify the code to balance loc/unlock calls
authorLeon Romanovsky <leon@kernel.org>
Sat, 22 Apr 2017 14:28:51 +0000 (17:28 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 17:11:43 +0000 (13:11 -0400)
commit313e16d5afaf000bd3f7a80e328890f963a10366
treeb45dbbb0fb468a8ef2fecc77505bb4abbe9d6a4d
parentf5029e752b0d8e4de81f9dfb7752c04ae1eecc69
IB/usnic: Simplify the code to balance loc/unlock calls

Simplify code in find_free_vf_and_create_qp_grp() to avoid sparse error
regarding call to unlock in the block other than lock was called.

drivers/infiniband/hw/usnic/usnic_ib_verbs.c:206:9: warning: context imbalance
in 'find_free_vf_and_create_qp_grp' - different lock
contexts for basic block

CC: Christian Benvenuti <benve@cisco.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/usnic/usnic_ib_verbs.c