diff options
author | Jakob Koschel <jakobkoschel@gmail.com> | 2022-03-31 12:12:18 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-03-31 15:05:15 +0300 |
commit | 4a3b666e0ea977dd40adb56c37a91370f76fa19e (patch) | |
tree | f2a21bfe79fba98ff47b6daa463afa7581696714 /block/blk-wbt.h | |
parent | d1868328dec5ae2cf210111025fcbc71f78dd5ca (diff) | |
download | linux-4a3b666e0ea977dd40adb56c37a91370f76fa19e.tar.xz |
block: use 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].
Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1]
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Link: https://lore.kernel.org/r/20220331091218.641532-1-jakobkoschel@gmail.com
[axboe: move lookup to where return value is checked]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-wbt.h')
0 files changed, 0 insertions, 0 deletions