]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98759463dd8f43897d1b284dec2248babfe94941
tree7a2d05637010f9fd21bbc0adb27866a6132c04f5
parenta09ca8ad38d947872e0bf40e18df9b26ae590ffb
Revert "USB: quatech2: only write to the tty if the port is open."

This reverts commit c3883af38e67374a8d0ba3cc2e41660b73224a71.

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