aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2021-06-18 08:14:56 +0200
committerGreg Kroah-Hartman <[email protected]>2021-06-18 13:10:02 +0200
commit42ad25fc46d3f6b6fe5b4b933dd328677e328ec7 (patch)
tree11d579bd8d2fd738fec66b52f19b830f5e415765 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
parentc3db20c3b71bf14d49e4a6582325e22db4e74a75 (diff)
mxser: rework and simplify mxser_open
In mxser_open, tty->port is already set thanks to tty_port_register_device in ->probe. So we can simply use container_of to deduce the struct mxser_port's pointer. Thus avoiding divisions and complex computations. 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/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions