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

Commit 2be818a1 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Cc: Bill Pemberton <wfp5p@viridian.itc.virginia.edu>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 23a376f9
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -657,8 +657,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);
@@ -702,7 +700,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);
}