mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
Revert "USB: quatech2: only write to the tty if the port is open."
This reverts commit 27b351c554. It caused
problems with the build.
Reported-by: Stephen Rothwell <[email protected]>
Cc: Bill Pemberton <[email protected]>
Cc: Jiri Slaby <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
23a376f98c
commit
2be818a116
1 file changed
+2
-5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user