]> 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)
commit7e6c8a87684e76493981aa8a67d9b0c3b1c54ad6
tree7a2d05637010f9fd21bbc0adb27866a6132c04f5
parent8b8612e1eda29245fa8e776bcb51f25eb6f8ca2d
Revert "USB: quatech2: only write to the tty if the port is open."

This reverts commit 3b11dce8f569e250539e3f3de664a22d86472f91.

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