]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit15bc2e1bb1ece00abc7a7f0a14d2ef0d52804a02
tree60c87f3b3ea5a0a8a88ee7fef62dcec110154047
parent27b622bfb442640781b2e44fb797b83aa1308073
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