tty/serial: mpc52xx_uart: Don't zero port->sysrq
authorDmitry Safonov <dima@arista.com>
Fri, 13 Dec 2019 00:06:23 +0000 (00:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 14:04:52 +0000 (15:04 +0100)
uart_handle_sysrq_char() already does it.

Signed-off-by: Dmitry Safonov <dima@arista.com>
Link: https://lore.kernel.org/r/20191213000657.931618-25-dima@arista.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mpc52xx_uart.c

index ba1fddb..af17004 100644 (file)
@@ -1378,10 +1378,8 @@ mpc52xx_uart_int_rx_chars(struct uart_port *port)
                ch = psc_ops->read_char(port);
 
                /* Handle sysreq char */
-               if (uart_handle_sysrq_char(port, ch)) {
-                       port->sysrq = 0;
+               if (uart_handle_sysrq_char(port, ch))
                        continue;
-               }
 
                /* Store it */