aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/nhi.c
diff options
context:
space:
mode:
authorJakob Koschel <jakobkoschel@gmail.com>2022-03-24 08:27:00 +0100
committerMika Westerberg <mika.westerberg@linux.intel.com>2022-04-04 12:31:50 +0300
commit03941ed91c7231e4973fb50de6c349974405df4e (patch)
tree9c0a27bf35029b05606345a7947997e677055619 /drivers/thunderbolt/nhi.c
parentLinux 5.18-rc1 (diff)
downloadlinux-dev-03941ed91c7231e4973fb50de6c349974405df4e.tar.xz
linux-dev-03941ed91c7231e4973fb50de6c349974405df4e.zip
thunderbolt: 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 <jakobkoschel@gmail.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/nhi.c')
0 files changed, 0 insertions, 0 deletions