linux/drivers/misc/bcm-vk
Jakob Koschel 88517757a8 misc: bcm-vk: 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>
Link: https://lore.kernel.org/r/20220327214551.2188544-1-jakobkoschel@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-24 17:30:27 +02:00
..
bcm_vk_dev.c misc: bcm-vk: Remove viper from device id table 2022-03-18 13:53:40 +01:00
bcm_vk_msg.c misc: bcm-vk: replace usage of found with dedicated list iterator variable 2022-04-24 17:30:27 +02:00
bcm_vk_msg.h misc: bcm-vk: Replace zero-length array with flexible array member 2021-05-21 22:03:29 +02:00
bcm_vk_sg.c misc: bcm-vk: add VK messaging support 2021-01-25 18:44:44 +01:00
bcm_vk_sg.h misc: bcm-vk: add VK messaging support 2021-01-25 18:44:44 +01:00
bcm_vk_tty.c misc: bcm-vk: fix tty registration race 2021-09-21 16:17:15 +02:00
bcm_vk.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
Kconfig misc: bcm-vk: only support ttyVK if CONFIG_TTY is set 2021-02-04 00:48:58 +01:00
Makefile misc: bcm-vk: only support ttyVK if CONFIG_TTY is set 2021-02-04 00:48:58 +01:00