staging: lustre: obdclass: simplify cl_lock_fini()
authorNeilBrown <neilb@suse.com>
Mon, 30 Oct 2017 04:59:27 +0000 (15:59 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:37 +0000 (09:20 +0100)
commit988b9ea9129bc24baf36ee421feb823285f234c4
treef90f096f84888a303f2f9f95c02b556521c141e6
parentdff162689a4061ff30d3a05f9d790e375c06ab8f
staging: lustre: obdclass: simplify cl_lock_fini()

Using list_first_entry_or_null() makes this (slightly)
simpler.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/cl_lock.c