diff options
author | Jakob Koschel <[email protected]> | 2022-03-24 08:24:35 +0100 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2022-04-07 22:20:27 -0500 |
commit | 3be066542ec400e7cdbcef2a6ac1d36c5366a6f6 (patch) | |
tree | eb24d43a518702336a14a3b7cab2d8a1704e74f8 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 3edff6262c48fe73feedc7277a3a6ebc3ed35a37 (diff) |
soc: qcom: pdr: 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 <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions