]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mxser: remove doubled sets of close times
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Thu, 8 Aug 2024 10:35:39 +0000 (12:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 06:25:21 +0000 (08:25 +0200)
tty_port::close_delay and ::closing_wait are set in tty_port_init() few
lines above already, no need to reset them (to the same values).

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://lore.kernel.org/r/20240808103549.429349-4-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c

index 9a9a67b5afa05674c6dddf45ca7f12390a0b8ce4..6cfef88a18e3b9d26fe947d588d92fe2f15e8645 100644 (file)
@@ -1770,8 +1770,6 @@ static void mxser_initbrd(struct mxser_board *brd, bool high_baud)
 
                mxser_process_txrx_fifo(info);
 
-               info->port.close_delay = 5 * HZ / 10;
-               info->port.closing_wait = 30 * HZ;
                spin_lock_init(&info->slock);
 
                /* before set INT ISR, disable all int */