diff options
author | Johan Hovold <johan@kernel.org> | 2017-01-31 11:51:08 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-01-31 17:21:29 +0100 |
commit | 41a2af93aeebd43daaac397b6662d5822f0742fc (patch) | |
tree | 12ef34f2417e6c45df7ca3eac18858ddbbd6bfbe /drivers/usb/serial | |
parent | 4481200364ab1d6820a77ed442775a6e4f7c979f (diff) |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/ark3116.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index d0fcff20ca7e..e3f6a4e2e2ad 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c @@ -347,8 +347,8 @@ static void ark3116_close(struct usb_serial_port *port) ark3116_write_reg(serial, UART_IER, 0); 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) |