Skip to contentSkip to conversation

remove is_tty()

PATCH In review Adrian Bunk 2 participants 2 messages May 5, 2008 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove is_tty()

This patch removes the no longer used is_tty().

---

 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

drivers/char/tty_io.c +0 -13
@@ -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;