diff options
| author | Jakob Koschel <[email protected]> | 2022-04-01 01:06:30 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-04-04 09:11:25 +0100 |
| commit | c22e60c315c80ffeb33c7225cbeea33acf0a0f4b (patch) | |
| tree | bb41bff5b61c5baa3a522f4e064602ed15dc828a /tools/perf/scripts/python | |
| parent | a8e1f0ba138e0c7c51cdf268b2edef758581a31e (diff) | |
iio: buffer: remove usage of list iterator variable for list_for_each_entry_continue_reverse()
In preparation to limit the scope of the list iterator variable to the
list traversal loop, use a dedicated pointer to iterate through the
list [1].
Since that variable should not be used past the loop iteration, a
separate variable is used to 'remember the current location within the
loop'.
To either continue iterating from that position or start a new
iteration (if the previous iteration was complete) list_prepare_entry()
is used.
Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1]
Signed-off-by: Jakob Koschel <[email protected]>
Reviewed-by: Nuno Sá <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions