diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2014-11-05 12:12:58 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-05 21:42:46 -0500 |
commit | 62462aefeb5aff092fc97037d9c12a4afe95a3ff (patch) | |
tree | 23ca93e2b8758158fff67a76e5851e22032811a9 /drivers/tty/tty_io.c | |
parent | 949aa64ff90d9a9b3aae13bb5a8247614adf4600 (diff) |
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>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r-- | drivers/tty/tty_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index f5b62b99489d..cd9550820a58 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c | |||
@@ -1892,7 +1892,7 @@ int tty_release(struct inode *inode, struct file *filp) | |||
1892 | /* | 1892 | /* |
1893 | * Ask the line discipline code to release its structures | 1893 | * Ask the line discipline code to release its structures |
1894 | */ | 1894 | */ |
1895 | tty_ldisc_release(tty, o_tty); | 1895 | tty_ldisc_release(tty); |
1896 | 1896 | ||
1897 | /* Wait for pending work before tty destruction commmences */ | 1897 | /* Wait for pending work before tty destruction commmences */ |
1898 | tty_flush_works(tty); | 1898 | tty_flush_works(tty); |