aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2023-09-19 10:51:45 +0200
committerGreg Kroah-Hartman <[email protected]>2023-10-03 14:31:15 +0200
commitc2b0fb9f69987ddec6bf21f95157603ea4c83aff (patch)
tree04cc5036a8e7cd7c273fcdf0180dbea9f9a49b59 /tools/perf/scripts/python/flamegraph.py
parent72369f2d493d4c0f4f0ed5a66b19c6912c4837ef (diff)
tty: n_tty: invert the condition in copy_from_read_buf()
Make "no numbers available" a fast quit from the function. And do the heavy work outside the 'if'. This makes the code more understandable and conforming to the common kernel coding style. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Reviewed-by: Ilpo Järvinen <[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/flamegraph.py')
0 files changed, 0 insertions, 0 deletions