summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/st-asc.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-05-19 11:25:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-20 16:24:05 +0200
commit18ee37e1382a7c4840e753bc8e9ba5fd5dc663f5 (patch)
treea361047c9b6ecd2081b5e415cb461a17b684d86f /drivers/tty/serial/st-asc.c
parent1d751b04a49dd7c2c7a07388074d262225f4de74 (diff)
downloadlinux-stable-18ee37e1382a7c4840e753bc8e9ba5fd5dc663f5.tar.gz
linux-stable-18ee37e1382a7c4840e753bc8e9ba5fd5dc663f5.tar.bz2
linux-stable-18ee37e1382a7c4840e753bc8e9ba5fd5dc663f5.zip
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/st-asc.c')
-rw-r--r--drivers/tty/serial/st-asc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c
index e7048515a79c..f092c11f9d7d 100644
--- a/drivers/tty/serial/st-asc.c
+++ b/drivers/tty/serial/st-asc.c
@@ -478,7 +478,7 @@ static void asc_pm(struct uart_port *port, unsigned int state,
unsigned int oldstate)
{
struct asc_port *ascport = to_asc_port(port);
- unsigned long flags = 0;
+ unsigned long flags;
u32 ctl;
switch (state) {