summaryrefslogtreecommitdiffstats
path: root/drivers/block/ataflop.c
diff options
context:
space:
mode:
authorJakob Koschel <jakobkoschel@gmail.com>2022-03-24 08:20:50 +0100
committerIlya Dryomov <idryomov@gmail.com>2022-05-25 20:45:13 +0200
commit3302ffd44c3d70e77ad5764d15f5028a6ade540a (patch)
tree06e31d992e18d5141d4d93485b381ad3aa0a03a8 /drivers/block/ataflop.c
parentceph: allow ceph.dir.rctime xattr to be updatable (diff)
downloadlinux-3302ffd44c3d70e77ad5764d15f5028a6ade540a.tar.xz
linux-3302ffd44c3d70e77ad5764d15f5028a6ade540a.zip
rbd: 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. 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: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/block/ataflop.c')
0 files changed, 0 insertions, 0 deletions