summaryrefslogtreecommitdiff
path: root/block/bio.c
diff options
context:
space:
mode:
authorJakob Koschel <jakobkoschel@gmail.com>2022-03-24 10:25:03 +0300
committerNishanth Menon <nm@ti.com>2022-04-11 16:45:56 +0300
commitd281a982c2693c6a7bffaa1ae1ff3b400d6e6c74 (patch)
treeb0ef579ce66063ff3eeb37eea59a3f9b4f547600 /block/bio.c
parentc2b0390132edffad1b52e4e84f797343b10f5ef2 (diff)
downloadlinux-d281a982c2693c6a7bffaa1ae1ff3b400d6e6c74.tar.xz
soc: ti: 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. Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com> Signed-off-by: Nishanth Menon <nm@ti.com> Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com> Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ Link: https://lore.kernel.org/r/20220324072503.63244-1-jakobkoschel@gmail.com
Diffstat (limited to 'block/bio.c')
0 files changed, 0 insertions, 0 deletions