clockevents: Use dedicated list iterator variable
authorJakob Koschel <jakobkoschel@gmail.com>
Thu, 31 Mar 2022 21:57:07 +0000 (23:57 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 10 Apr 2022 10:38:45 +0000 (12:38 +0200)
commit2966a9918dfab183a1cb6be6794981ebe2abff83
tree60c87f3b3ea5a0a8a88ee7fef62dcec110154047
parenta2026e44eff5d74a83d7ffee6325a007bef85385
clockevents: 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.

Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/
Link: https://lore.kernel.org/r/20220331215707.883957-1-jakobkoschel@gmail.com
kernel/time/clockevents.c