Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7ce20b2 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

remove is_tty()



This patch removes the no longer used is_tty().

Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d36e74c4
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -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;