aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2021-11-18 08:31:11 +0100
committerGreg Kroah-Hartman <[email protected]>2021-11-25 18:33:21 +0100
commit3b88dbff1c4e7d8a78e11773f19869c598552fcb (patch)
tree8cc9dee5ebdb1169f90a2aeb5b2e9d4f21cfc3d1 /tools/perf/scripts/python
parent30f6027fe4643be955e4e9849f242e55ba993185 (diff)
mxser: clean up tx handling in mxser_transmit_chars()
The port->icount.tx is handled in a too complicated manner. Instead of remembering the original count and subtracting the new one from it, simply increase tx for each character in the loop. No need for cnt variable then. Change also the "X = X & Y" assignment to simpler "X &= Y". 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')
0 files changed, 0 insertions, 0 deletions