summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_io.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-11-05 18:26:24 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-06 05:18:30 +0100
commit1256937f0438786cb19a7cb716b12025b30052e9 (patch)
tree795c3eeded585f0753f891184efe16fca8e51274 /drivers/tty/tty_io.c
parenttty: ipwireless: Fix probable mask then right shift defects (diff)
downloadlinux-1256937f0438786cb19a7cb716b12025b30052e9.tar.xz
linux-1256937f0438786cb19a7cb716b12025b30052e9.zip
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>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r--drivers/tty/tty_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 4bd48f79b94b..1262368443f4 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -2129,7 +2129,7 @@ retry_open:
/*
* Need to reset f_op in case a hangup happened.
*/
- if (filp->f_op == &hung_up_tty_fops)
+ if (tty_hung_up_p(filp))
filp->f_op = &tty_fops;
goto retry_open;
}