提交 2be818a1 编写于 作者: G Greg Kroah-Hartman

Revert "USB: quatech2: only write to the tty if the port is open."

This reverts commit 27b351c5.  It caused
problems with the build.
Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
Cc: Bill Pemberton <wfp5p@viridian.itc.virginia.edu>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 23a376f9
...@@ -657,9 +657,7 @@ void qt2_process_read_urb(struct urb *urb) ...@@ -657,9 +657,7 @@ void qt2_process_read_urb(struct urb *urb)
__func__); __func__);
break; break;
} }
tty_flip_buffer_push(&port->port);
if (port_priv->is_open)
tty_flip_buffer_push(&port->port);
newport = *(ch + 3); newport = *(ch + 3);
...@@ -702,8 +700,7 @@ void qt2_process_read_urb(struct urb *urb) ...@@ -702,8 +700,7 @@ void qt2_process_read_urb(struct urb *urb)
tty_insert_flip_string(&port->port, ch, 1); 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) static void qt2_write_bulk_callback(struct urb *urb)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册