From: Adrian Bunk This patch removes the no longer used is_tty(). Signed-off-by: Adrian Bunk Acked-by: Alan Cox Signed-off-by: Andrew Morton --- drivers/char/tty_io.c | 13 ------------- 1 file changed, 13 deletions(-) diff -puN drivers/char/tty_io.c~remove-is_tty drivers/char/tty_io.c --- a/drivers/char/tty_io.c~remove-is_tty +++ a/drivers/char/tty_io.c @@ -1590,19 +1590,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; _