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)
commit940874f8beae5b954350317920170e84ce5dcbee
tree08cfbbeb97770c46ffe069c745f5309d1d1d1cac
parenta11253142e6d317c25215ddb3029f9c754baefef
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