diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-07-24 00:26:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:13 -0400 |
commit | d7ce20b2024d318b9ba88859226af1441270d99f (patch) | |
tree | 3d12f9d53ebb5db6f1112bffc717da854ce9dafd /drivers/char/tty_io.c | |
parent | d36e74c4392b5f26a5c4d94d7881a156ddc8e593 (diff) |
remove is_tty()
This patch removes the no longer used is_tty().
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r-- | drivers/char/tty_io.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index fa48dba5ba5e..6f4d856df987 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c | |||
@@ -1119,19 +1119,6 @@ int tty_hung_up_p(struct file *filp) | |||
1119 | 1119 | ||
1120 | EXPORT_SYMBOL(tty_hung_up_p); | 1120 | EXPORT_SYMBOL(tty_hung_up_p); |
1121 | 1121 | ||
1122 | /** | ||
1123 | * is_tty - checker whether file is a TTY | ||
1124 | * @filp: file handle that may be a tty | ||
1125 | * | ||
1126 | * Check if the file handle is a tty handle. | ||
1127 | */ | ||
1128 | |||
1129 | int is_tty(struct file *filp) | ||
1130 | { | ||
1131 | return filp->f_op->read == tty_read | ||
1132 | || filp->f_op->read == hung_up_tty_read; | ||
1133 | } | ||
1134 | |||
1135 | static void session_clear_tty(struct pid *session) | 1122 | static void session_clear_tty(struct pid *session) |
1136 | { | 1123 | { |
1137 | struct task_struct *p; | 1124 | struct task_struct *p; |