X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fchar%2Ftty_io.c;h=e1b46bc7e43cd245794f02610afe6c88d49eeb47;hb=327dafb1c61c9da7b95ac6cc7634a2340cc9509c;hp=fa48dba5ba5e94ff5833f16c8e4e758bb1ffbd66;hpb=30d38542ec777468bb6a31829076a2dbc5690e35;p=linux-2.6 diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index fa48dba5ba..e1b46bc7e4 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) 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; @@ -3593,7 +3580,6 @@ void proc_clear_tty(struct task_struct *p) p->signal->tty = NULL; spin_unlock_irq(&p->sighand->siglock); } -EXPORT_SYMBOL(proc_clear_tty); /* Called under the sighand lock */