fs: dlm: use list_first_entry_or_null
authorAlexander Aring <aahringo@redhat.com>
Thu, 17 Nov 2022 22:11:48 +0000 (17:11 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 21 Nov 2022 15:45:49 +0000 (09:45 -0600)
commitdd070a56e0fa36f03bcd09fbf1521c733cf2aa21
tree88b8ef4820613dfe92d2b3d4019af3f4e720063c
parent01ea3d7701cb52dece379384f8aa7b8840f1d7c7
fs: dlm: use list_first_entry_or_null

Instead of check on list_empty() we can do the same with
list_first_entry_or_null() and return NULL if the returned value is NULL.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c