From: Greg Kroah-Hartman Date: Thu, 21 Mar 2013 23:07:57 +0000 (-0700) Subject: Revert "USB: quatech2: only write to the tty if the port is open." X-Git-Tag: firefly_0821_release~3680^2~673^2~46 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2be818a116b22dff518f0d7112e6bed39f2034a1;p=firefly-linux-kernel-4.4.55.git 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 Cc: Bill Pemberton Cc: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- 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) __func__); break; } - - if (port_priv->is_open) - tty_flip_buffer_push(&port->port); + tty_flip_buffer_push(&port->port); newport = *(ch + 3); @@ -702,8 +700,7 @@ void qt2_process_read_urb(struct urb *urb) tty_insert_flip_string(&port->port, ch, 1); } - if (port_priv->is_open) - tty_flip_buffer_push(&port->port); + tty_flip_buffer_push(&port->port); } static void qt2_write_bulk_callback(struct urb *urb)