diff options
author | Dmitry Safonov <dima@arista.com> | 2019-12-13 01:06:23 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-18 15:04:52 +0100 |
commit | 7cbfd6a0230d4bc5aeceb48241f63b037ecc0d81 (patch) | |
tree | a9049fe28b8e9f2fd4a5291e583d89f383028095 /drivers/tty/serial/mpc52xx_uart.c | |
parent | tty/serial: Migrate mpc52xx_uart to use has_sysrq (diff) | |
download | linux-7cbfd6a0230d4bc5aeceb48241f63b037ecc0d81.tar.xz linux-7cbfd6a0230d4bc5aeceb48241f63b037ecc0d81.zip |
tty/serial: mpc52xx_uart: Don't zero port->sysrq
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>
Diffstat (limited to 'drivers/tty/serial/mpc52xx_uart.c')
-rw-r--r-- | drivers/tty/serial/mpc52xx_uart.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c index ba1fddb6801c..af1700445251 100644 --- a/drivers/tty/serial/mpc52xx_uart.c +++ b/drivers/tty/serial/mpc52xx_uart.c @@ -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 */ |