diff options
author | Jakob Koschel <[email protected]> | 2022-03-24 08:10:19 +0100 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2022-05-20 20:40:58 -0700 |
commit | 560a3164c9a3ad0f9c71660f548171e04d89c7fa (patch) | |
tree | cdc8a8215555f4658eb12bacc47ebee32ff24ec9 /scripts/gdb/linux/timerlist.py | |
parent | 37004db2a560d7f0641bc81f0d405b8b9849e797 (diff) |
clk: ti: clkctrl: 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]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Tony Lindgren <[email protected]>
Reviewed-by: Tony Lindgren <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions