Commit 41a2af93 authored by Johan Hovold's avatar Johan Hovold

USB: serial: ark3116: remove redundant interrupt-urb check

Remove redundant check of num_interrupt_in which has already been
verified in probe (killing a NULL-urb would also have been fine).
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 44812003
...@@ -347,8 +347,8 @@ static void ark3116_close(struct usb_serial_port *port) ...@@ -347,8 +347,8 @@ static void ark3116_close(struct usb_serial_port *port)
ark3116_write_reg(serial, UART_IER, 0); ark3116_write_reg(serial, UART_IER, 0);
usb_serial_generic_close(port); usb_serial_generic_close(port);
if (serial->num_interrupt_in)
usb_kill_urb(port->interrupt_in_urb); usb_kill_urb(port->interrupt_in_urb);
} }
static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port) static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment