* [2.6 patch] remove is_tty()
@ 2008-05-05 18:21 Adrian Bunk
2008-05-05 18:44 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-05-05 18:21 UTC (permalink / raw)
To: Miloslav Trmac, Alan Cox; +Cc: linux-kernel, Andrew Morton
This patch removes the no longer used is_tty().
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
drivers/char/tty_io.c | 13 -------------
1 file changed, 13 deletions(-)
235f289c0d590299142947baddd41153bd312f6d diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index 2fa6856..b1f6d33 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -1576,19 +1576,6 @@ int tty_hung_up_p(struct file *filp)
EXPORT_SYMBOL(tty_hung_up_p);
-/**
- * is_tty - checker whether file is a TTY
- * @filp: file handle that may be a tty
- *
- * Check if the file handle is a tty handle.
- */
-
-int is_tty(struct file *filp)
-{
- return filp->f_op->read == tty_read
- || filp->f_op->read == hung_up_tty_read;
-}
-
static void session_clear_tty(struct pid *session)
{
struct task_struct *p;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [2.6 patch] remove is_tty()
2008-05-05 18:21 [2.6 patch] remove is_tty() Adrian Bunk
@ 2008-05-05 18:44 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2008-05-05 18:44 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Miloslav Trmac, linux-kernel, Andrew Morton
On Mon, 5 May 2008 21:21:34 +0300
Adrian Bunk <bunk@kernel.org> wrote:
> This patch removes the no longer used is_tty().
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Alan Cox <alan@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-05 18:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05 18:21 [2.6 patch] remove is_tty() Adrian Bunk
2008-05-05 18:44 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox