mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
serial: core: drop redundant TIOCGSERIAL memset
Since commit 5099d234a5
("serial_core: switch to ->[sg]et_serial()")
the serial structure passed to uart_get_info() has already have been
cleared by the tty layer so drop the redundant memset.
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210407095208.31838-8-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5a35b040d0
commit
8b57b3a123
@ -759,8 +759,6 @@ static int uart_get_info(struct tty_port *port, struct serial_struct *retinfo)
|
||||
struct uart_port *uport;
|
||||
int ret = -ENODEV;
|
||||
|
||||
memset(retinfo, 0, sizeof(*retinfo));
|
||||
|
||||
/*
|
||||
* Ensure the state we copy is consistent and no hardware changes
|
||||
* occur as we go
|
||||
|
Loading…
Reference in New Issue
Block a user