]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: drop redundant TIOCGSERIAL memset
authorJohan Hovold <johan@kernel.org>
Wed, 7 Apr 2021 09:52:07 +0000 (11:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 08:36:34 +0000 (10:36 +0200)
commit332d8265003539184520dc2ebda30e439c54dd5a
treeb0f6c7f98dd904db1a0d011309c8e2aa6c784b5c
parenta95402122d74ed35efac0c839dd84a934e61f35d
serial: core: drop redundant TIOCGSERIAL memset

Since commit 67d8eed80d28 ("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>
drivers/tty/serial/serial_core.c