Revert "USB: quatech2: only write to the tty if the port is open."
authorBill Pemberton <wfp5p@virginia.edu>
Wed, 20 Mar 2013 15:46:10 +0000 (11:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 23:27:55 +0000 (16:27 -0700)
commit29727f3bc2e691d59c521ff09b4d59a743b5d9a3
tree7a2d05637010f9fd21bbc0adb27866a6132c04f5
parentcf2d9500a5a0df61713b56f2f40aa0b81a6f9f63
Revert "USB: quatech2: only write to the tty if the port is open."

This reverts commit 27b351c5546008c640b3e65152f60ca74b3706f1.

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: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/quatech2.c