]> git.baikalelectronics.ru Git - kernel.git/commit
TTY: hso, remove tty NULL checks fro tty->ops
authorJiri Slaby <jslaby@suse.cz>
Mon, 2 Apr 2012 11:54:06 +0000 (13:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 18:18:36 +0000 (11:18 -0700)
commit6cdfcef6da4777613d4e913e73f2de233e66bda1
tree76054f8c17d06434162e9a3614f31a8791cbd846
parentdbfc31fc93720f5026dfe054fec087ea18a580ef
TTY: hso, remove tty NULL checks fro tty->ops

tty is never NULL in tty->ops->* while the device is open. (And they
are not called otherwise.) So remove pointless checks and use
tty->driver_data directly.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Jan Dumon <j.dumon@option.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/hso.c