]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srpt: Simplify srpt_close_session()
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 17 Jan 2018 00:14:11 +0000 (16:14 -0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 18 Jan 2018 19:49:25 +0000 (14:49 -0500)
commit876b3693d8ee88a3af17d48d6b44beeb444b38b1
tree08cfbbeb97770c46ffe069c745f5309d1d1d1cac
parent72096024a739fd14b52a8c3462223042a10990db
IB/srpt: Simplify srpt_close_session()

Move a mutex lock and unlock statement from srpt_close_session()
into srpt_disconnect_ch_sync(). Since the previous patch removed
the last user of the return value of that function, change the
return value of srpt_disconnect_ch_sync() into void.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c