summaryrefslogtreecommitdiff
path: root/drivers/base/property.c
diff options
context:
space:
mode:
authorJakob Koschel <jakobkoschel@gmail.com>2022-04-06 21:05:31 +0300
committerDavid Teigland <teigland@redhat.com>2022-04-06 22:03:14 +0300
commitdc1acd5c94699389a9ed023e94dd860c846ea1f6 (patch)
tree899a5eb3825eeb1e273f825e859bb98b218e79f9 /drivers/base/property.c
parentc490b3afaa579ab238f78c762d703441ccc898bd (diff)
downloadlinux-dc1acd5c94699389a9ed023e94dd860c846ea1f6.tar.xz
dlm: replace usage of found with dedicated list iterator variable
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found boolean [1]. This removes the need to use a found variable and simply checking if the variable was set, can determine if the break/goto was hit. Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1] Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com> Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'drivers/base/property.c')
0 files changed, 0 insertions, 0 deletions