aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2021-11-18 08:31:11 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-25 18:33:21 +0100
commit3b88dbff1c4e7d8a78e11773f19869c598552fcb (patch)
tree8cc9dee5ebdb1169f90a2aeb5b2e9d4f21cfc3d1 /tools/perf/scripts/python
parentmxser: move MSR read to mxser_check_modem_status() (diff)
downloadlinux-3b88dbff1c4e7d8a78e11773f19869c598552fcb.tar.gz
linux-3b88dbff1c4e7d8a78e11773f19869c598552fcb.zip
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 <jslaby@suse.cz> Link: https://lore.kernel.org/r/20211118073125.12283-6-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions