aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2021-05-05 11:18:59 +0200
committerGreg Kroah-Hartman <[email protected]>2021-05-13 16:57:16 +0200
commit67a620d58b47b6683da7f8152baa4384f74b19f8 (patch)
tree5b60c90fca607b0fa44a43a6c02255c19fdbe91b /tools/perf/scripts/python/bin/stackcollapse-report
parent95aafe3278e7f16910eeef59c0664b1d23dcdda0 (diff)
n_tty: move lnext handling
Move lnext handling from __receive_buf to n_tty_receive_buf_standard. It simplifies the handling as it needs not fetching 'flag' and decrement 'count' in __receive_buf. Instead, all this is left up to the loop in n_tty_receive_buf_standard which already does that. This way, no need to repeat the action when n_tty_receive_char_special returns true -- ldata->lnext is set there in that case, so the 'if (ldata->lnext)' check is sufficient. The next patch will switch n_tty_receive_char_special to return 'void'. The result is much simplified code flow. Signed-off-by: Jiri Slaby <[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/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions