diff options
author | Johan Hovold <johan@kernel.org> | 2021-05-19 11:25:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-20 16:24:05 +0200 |
commit | 18ee37e1382a7c4840e753bc8e9ba5fd5dc663f5 (patch) | |
tree | a361047c9b6ecd2081b5e415cb461a17b684d86f /drivers/tty/serial/imx.c | |
parent | 1d751b04a49dd7c2c7a07388074d262225f4de74 (diff) | |
download | linux-18ee37e1382a7c4840e753bc8e9ba5fd5dc663f5.tar.gz |
serial: drop irq-flags initialisations
There's no need to initialise irq-flags variables before saving the interrupt state. Drop the redundant initialisations from drivers that got this wrong. Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210519092541.10137-1-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r-- | drivers/tty/serial/imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 7d5a8dfa3e91..4b838601cdce 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1975,8 +1975,8 @@ imx_uart_console_write(struct console *co, const char *s, unsigned int count) { struct imx_port *sport = imx_uart_ports[co->index]; struct imx_port_ucrs old_ucr; + unsigned long flags; unsigned int ucr1; - unsigned long flags = 0; int locked = 1; if (sport->port.sysrq) |