diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-06-18 08:14:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-18 13:10:02 +0200 |
commit | 42ad25fc46d3f6b6fe5b4b933dd328677e328ec7 (patch) | |
tree | 11d579bd8d2fd738fec66b52f19b830f5e415765 /tools | |
parent | c3db20c3b71bf14d49e4a6582325e22db4e74a75 (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 <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-51-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions