aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_string.c
diff options
context:
space:
mode:
authorJakob Koschel <[email protected]>2022-04-29 21:37:57 +0000
committerakpm <[email protected]>2022-04-29 21:37:57 +0000
commitb02da32b613f989b73c88113db16ab47de11a3fd (patch)
treeeec326b9067be8cfb3340e356f4c2006d86a8953 /lib/test_string.c
parentocfs2: replace usage of found with dedicated list iterator variable (diff)
downloadkernel-b02da32b613f989b73c88113db16ab47de11a3fd.tar.gz
kernel-b02da32b613f989b73c88113db16ab47de11a3fd.zip
ocfs2: remove usage of list iterator variable after the loop body
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/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jakob Koschel <[email protected]> Reviewed-by: Joseph Qi <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Changwei Ge <[email protected]> Cc: Gang He <[email protected]> Cc: Jun Piao <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_string.c')
0 files changed, 0 insertions, 0 deletions