serial: dz: Assume previous baudrate is valid
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 16 Aug 2022 11:57:34 +0000 (14:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 12:22:34 +0000 (14:22 +0200)
commitc87391b5dd77fbd4fd0b0a96fa867a169842b0a9
tree4abf0e70f97e97bc702fbb4ce116e2b30bbdd27c
parent292e2e7a639dad2392e5af5281d1f48f05dde10d
serial: dz: Assume previous baudrate is valid

Assume previously used termios has a valid baudrate and use
it directly.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220816115739.10928-4-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/dz.c