]> git.baikalelectronics.ru Git - kernel.git/commit
TTY: quatech2, remove unneeded is_open
authorJiri Slaby <jslaby@suse.cz>
Thu, 7 Mar 2013 12:12:31 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:21:26 +0000 (16:21 -0700)
commit18d31ba6bd5e745660db655fdbc71f65f94a2aaf
tree310aeb3fe12030b9c69cb20ded75ae56ccd8a82c
parent34fd2a6dafc9bd19e1290bf664263fdd801255ce
TTY: quatech2, remove unneeded is_open

tty->ops->break_ctl cannot be called outside the gap between open and
close. So there is no need to check whether the port is open in
break_ctl in quatech2. Remove the check and also that member
completely.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/quatech2.c