tty: Replace open-coded test with tty_hung_up_p()
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 5 Nov 2014 17:26:24 +0000 (12:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 04:18:30 +0000 (20:18 -0800)
commit1256937f0438786cb19a7cb716b12025b30052e9
tree795c3eeded585f0753f891184efe16fca8e51274
parent7e041abf79c1b555b9d117d4a319b505ee601f55
tty: Replace open-coded test with tty_hung_up_p()

tty_hung_up_p() is equivalent to the open-coded test in tty_open().

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c