amiserial: use memset to zero serial_state
authorJiri Slaby <jslaby@suse.cz>
Wed, 14 Jul 2021 09:13:09 +0000 (11:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 10:49:51 +0000 (12:49 +0200)
commit5d4317abd2223eea5884f7e28d1047d5e87d4a6f
tree5a819b6b87d329012aa7a07a00f9c7c36ddc7393
parent7ec3114ec78026b132eba2c7f4b1d582fad82047
amiserial: use memset to zero serial_state

Zeroing each member of struct serial_state in probe is fragile and
overly complicated. Do one memset for them all.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210714091314.8292-6-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/amiserial.c