diff options
author | Jakob Koschel <jakobkoschel@gmail.com> | 2022-04-12 14:20:40 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-04-25 15:13:04 -0700 |
commit | 9e3a845df9ea56387d2a6011299d44ddf21b3322 (patch) | |
tree | 84f73b6e151236c08655f4de02abbbc5686a9dde /.mailmap | |
parent | df35435d4144ae3a8afeedf45ea43c5cc63a70eb (diff) | |
download | linux-9e3a845df9ea56387d2a6011299d44ddf21b3322.tar.bz2 |
f2fs: 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/
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions