summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorJakob Koschel <jakobkoschel@gmail.com>2022-03-27 23:45:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-24 17:30:27 +0200
commit88517757a829e9ce146a6c7233ad5dcdc66fcbb0 (patch)
tree0a8a421524e3a39eea3378f5e7560f8ae1f1138b /drivers/usb/cdns3/cdns3-debug.h
parentf76a9ae61628fe3bf182318054ddc9e6f501b1a1 (diff)
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>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions