diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-21 19:07:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-21 19:07:57 -0400 |
commit | 2be818a116b22dff518f0d7112e6bed39f2034a1 (patch) | |
tree | b1dad768e7f719b011a625b3c0b27365fffd3be1 /drivers/usb/serial/quatech2.c | |
parent | 23a376f98c5dcfc392d47e8d1872884ff44e585d (diff) |
Revert "USB: quatech2: only write to the tty if the port is open."
This reverts commit 27b351c5546008c640b3e65152f60ca74b3706f1. It caused
problems with the build.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Bill Pemberton <wfp5p@viridian.itc.virginia.edu>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/quatech2.c')
-rw-r--r-- | drivers/usb/serial/quatech2.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c index 4a4a5eb00aa5..d8531047b41a 100644 --- a/drivers/usb/serial/quatech2.c +++ b/drivers/usb/serial/quatech2.c | |||
@@ -657,9 +657,7 @@ void qt2_process_read_urb(struct urb *urb) | |||
657 | __func__); | 657 | __func__); |
658 | break; | 658 | break; |
659 | } | 659 | } |
660 | 660 | tty_flip_buffer_push(&port->port); | |
661 | if (port_priv->is_open) | ||
662 | tty_flip_buffer_push(&port->port); | ||
663 | 661 | ||
664 | newport = *(ch + 3); | 662 | newport = *(ch + 3); |
665 | 663 | ||
@@ -702,8 +700,7 @@ void qt2_process_read_urb(struct urb *urb) | |||
702 | tty_insert_flip_string(&port->port, ch, 1); | 700 | tty_insert_flip_string(&port->port, ch, 1); |
703 | } | 701 | } |
704 | 702 | ||
705 | if (port_priv->is_open) | 703 | tty_flip_buffer_push(&port->port); |
706 | tty_flip_buffer_push(&port->port); | ||
707 | } | 704 | } |
708 | 705 | ||
709 | static void qt2_write_bulk_callback(struct urb *urb) | 706 | static void qt2_write_bulk_callback(struct urb *urb) |