aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-sqlite-report
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-06-30 07:56:47 +0100
committerGreg Kroah-Hartman <[email protected]>2021-07-21 10:20:05 +0200
commitf0deefa679af621c51453b114b6977151b62cd39 (patch)
tree528a0def0c9b307bca3853fcc9073e0368d0a5eb /tools/perf/scripts/python/bin/export-to-sqlite-report
parente7ca5907d1e00dfa639cae8864db56eca906738d (diff)
staging: r8188eu: Fix while-loop that iterates only once
The while-loop only iterates once becase the post increment test of count being non-zero is false on the first iteration because count is zero. Fix this by using a for-loop instead. Static analysis found the issue on the count > POLLING_LLT_THRESHOLD check always being false since the loop currently just iterates once. Thanks to David Laight for suggesting using for-loop instead to improve the readability of the fix. Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions