aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/mpc52xx_uart.c
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2019-12-13 00:06:23 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-18 15:04:52 +0100
commit7cbfd6a0230d4bc5aeceb48241f63b037ecc0d81 (patch)
treea9049fe28b8e9f2fd4a5291e583d89f383028095 /drivers/tty/serial/mpc52xx_uart.c
parenttty/serial: Migrate mpc52xx_uart to use has_sysrq (diff)
downloadlinux-dev-7cbfd6a0230d4bc5aeceb48241f63b037ecc0d81.tar.xz
linux-dev-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.c4
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 */