summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/quatech2.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-05-19 11:20:06 +0200
committerJohan Hovold <johan@kernel.org>2021-05-21 15:46:25 +0200
commit17cd3a106e9762cd97883cce884a8bfcf5a476ad (patch)
tree29103fb27d030062c528145275283a30632eb273 /drivers/usb/serial/quatech2.c
parent661867161f63bc5cc22b0d1e8ea59a682779a0ef (diff)
downloadlinux-17cd3a106e9762cd97883cce884a8bfcf5a476ad.tar.gz
linux-17cd3a106e9762cd97883cce884a8bfcf5a476ad.tar.bz2
linux-17cd3a106e9762cd97883cce884a8bfcf5a476ad.zip
USB: serial: drop irq-flags initialisations
There's no need to initialise irq-flags variables before saving the interrupt state. Drop the redundant initialisations from the three drivers that got this wrong. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/quatech2.c')
-rw-r--r--drivers/usb/serial/quatech2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c
index 3b5f2032ecdb..d3377f3b5a23 100644
--- a/drivers/usb/serial/quatech2.c
+++ b/drivers/usb/serial/quatech2.c
@@ -874,7 +874,7 @@ static unsigned int qt2_write_room(struct tty_struct *tty)
{
struct usb_serial_port *port = tty->driver_data;
struct qt2_port_private *port_priv;
- unsigned long flags = 0;
+ unsigned long flags;
unsigned int r;
port_priv = usb_get_serial_port_data(port);