aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorJakob Koschel <[email protected]>2022-04-06 14:05:31 -0400
committerDavid Teigland <[email protected]>2022-04-06 14:03:14 -0500
commitdc1acd5c94699389a9ed023e94dd860c846ea1f6 (patch)
tree899a5eb3825eeb1e273f825e859bb98b218e79f9 /lib/mpi/mpi-sub-ui.c
parentc490b3afaa579ab238f78c762d703441ccc898bd (diff)
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 <[email protected]> Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: David Teigland <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions