diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-07-14 11:13:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-21 12:49:50 +0200 |
commit | 7ec3114ec78026b132eba2c7f4b1d582fad82047 (patch) | |
tree | 027d6c8e27bad3e9165e4df83187a53829b5a2b1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5a7c7a6bb7065625a9802fcd712e50c2424eac6b (diff) |
amiserial: simplify rs_open
tty->port is already set when rs_open is called given we linked it by
tty_port_link_device(). If it wasn't, the tty layer would WARN loudly.
So it's pointless to set it in rs_open. Instead, use the value in
tty->port to find out the serial_state (info).
It's a fallout of commit b19e2ca77ee4 (TTY: use tty_port_link_device)
which added tty_port_link_device here, but omitted to remove the
tty->port assignment from rs_open.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210714091314.8292-5-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions