aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-06-18 19:35:24 +0100
committerPatrik Jakobsson <[email protected]>2021-06-18 21:17:20 +0200
commite87138e05c803a78460a6b59fa75a05f92aa80fb (patch)
tree625afd009ddb2b7facad40691c5bc5a9dd1ff6d7 /tools/perf/scripts/python/flamegraph.py
parent12fc23a4a3d1dbeaf609c1f27af59755d48cb0fb (diff)
drm/gma500/oaktrail_lvds: replace continue with break
Currently a loop scans through the connector list checking for connectors that do not match a specific criteria. The use of the continue statement is a little unintuitive and can confuse static analysis checking. Invert the criteria matching logic and use a break to terminate the loop once the first suitable connector has been found. Thanks to Patrik Jakobsson for explaining the original intent of the code and suggesting this change. Addresses-Coverity: ("Continue has no effect") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Patrik Jakobsson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions