diff options
| author | Jakob Koschel <[email protected]> | 2022-03-24 08:21:24 +0100 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2022-04-06 15:11:58 +0300 |
| commit | a0ff2a87194a968b9547fd4d824a09092171d1ea (patch) | |
| tree | 90ace3d8d4dcb590a209e3bd94963f332175ceec /tools/perf/scripts/python/compaction-times.py | |
| parent | 92cadedd9d5f4355d8ca2765f2259708f0e5592c (diff) | |
rtlwifi: 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 <[email protected]>
Acked-by: Ping-Ke Shih <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions