diff options
author | Jakob Koschel <jakobkoschel@gmail.com> | 2022-03-08 20:18:14 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-15 20:19:45 +0300 |
commit | ac5534188dc477685dd0f49965d858cb73ad2ec1 (patch) | |
tree | f72dce7e26d194e4c7f3bcb3982b53c64e27363c /Kbuild | |
parent | eb6dc99ea2364a149ad61dd04637ea3b20434304 (diff) | |
download | linux-ac5534188dc477685dd0f49965d858cb73ad2ec1.tar.xz |
usb: gadget: pxa27x_udc: replace usage of rc to check if a list element was found
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 [1].
Link: https://lore.kernel.org/all/YhdfEIwI4EdtHdym@kroah.com/
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Link: https://lore.kernel.org/r/20220308171818.384491-23-jakobkoschel@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions