mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
staging: lustre: use list_last_entry to simplify fld_cache_shrink
Using list_empty() and list_last_entry() makes the code clearer, and allows a local variable to be discarded. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
93d3ad90c2
commit
7d5ea743bc
1 changed files with 6 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue