Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29727f3b authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman
Browse files

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



This reverts commit 27b351c5.

Calling tty_flip_buffer_push on an unopened tty is legal, so the
driver doesn't need track if port has been opened.  Reverting this
allows the entire is_open logic to be removed.

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cf2d9500
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -661,8 +661,6 @@ void qt2_process_read_urb(struct urb *urb)
						 __func__);
					break;
				}

				if (port_priv->is_open)
				tty_flip_buffer_push(&port->port);

				newport = *(ch + 3);
@@ -706,7 +704,6 @@ 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);
}