summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-06-16 09:17:08 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 16:07:46 -0700
commit7c6d340f4f0e889b134fd72f203519f591feef9d (patch)
tree097d12afeba6f748949074425fd9c85ea5cf8352 /drivers/tty
parent69fee6885f6042d0d3d3773b208a84e7bb161650 (diff)
downloadop-kernel-dev-7c6d340f4f0e889b134fd72f203519f591feef9d.zip
op-kernel-dev-7c6d340f4f0e889b134fd72f203519f591feef9d.tar.gz
tty: Call hangup method in modern style
Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-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 3411071..714320b 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -688,7 +688,7 @@ static void __tty_hangup(struct tty_struct *tty, int exit_session)
for (n = 0; n < closecount; n++)
tty->ops->close(tty, cons_filp);
} else if (tty->ops->hangup)
- (tty->ops->hangup)(tty);
+ tty->ops->hangup(tty);
/*
* We don't want to have driver/ldisc interactions beyond
* the ones we did here. The driver layer expects no
OpenPOWER on IntegriCloud