tty: Simplify tty_ldisc_release() interface
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 5 Nov 2014 17:12:58 +0000 (12:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 02:42:46 +0000 (18:42 -0800)
commit62462aefeb5aff092fc97037d9c12a4afe95a3ff
tree23ca93e2b8758158fff67a76e5851e22032811a9
parent949aa64ff90d9a9b3aae13bb5a8247614adf4600
tty: Simplify tty_ldisc_release() interface

Passing the 'other' tty to tty_ldisc_release() only makes sense
for a pty pair; make o_tty function local instead.

Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
drivers/tty/tty_ldisc.c
include/linux/tty.h