Messages in this thread | | | Date | Wed, 9 Mar 2022 18:20:16 +0100 | Subject | Re: [PATCH v2 26/26] usb: gadget: udc: s3c2410: remove usage of list iterator past the loop body | From | Krzysztof Kozlowski <> |
| |
On 08/03/2022 18:18, Jakob Koschel wrote: > 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> > --- > drivers/usb/gadget/udc/s3c2410_udc.c | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Best regards, Krzysztof
| |