diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2014-11-05 18:13:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-06 03:44:43 +0100 |
commit | 7ffb6da93c383a71b7f2d29d70cd420faa1ddeee (patch) | |
tree | 8468e693d64e8da711e78a9916b09d9fde817397 /drivers/tty/tty_mutex.c | |
parent | tty: Simplify tty_release_checks() interface (diff) | |
download | linux-7ffb6da93c383a71b7f2d29d70cd420faa1ddeee.tar.xz linux-7ffb6da93c383a71b7f2d29d70cd420faa1ddeee.zip |
tty: Simplify tty_release() state checks
The local o_tty variable in tty_release() is now accessed only
when closing the pty master.
Set o_tty to slave pty when closing pty master, otherwise NULL;
use o_tty != NULL as replacement for pty_master.
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_mutex.c')
0 files changed, 0 insertions, 0 deletions