summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-05-04 11:11:10 +0000
committered <ed@FreeBSD.org>2009-05-04 11:11:10 +0000
commitfb2908c8ff440e0985013b83071bd8dfecb11371 (patch)
tree6712a9457efb9a136e9a19211b8715547f8278ff
parent114e5b7de0b8806e71c47996696aa59e3fbc2428 (diff)
downloadFreeBSD-src-fb2908c8ff440e0985013b83071bd8dfecb11371.zip
FreeBSD-src-fb2908c8ff440e0985013b83071bd8dfecb11371.tar.gz
Remove unneeded check for SESS_LEADER().
We perform the same check ~10 lines above.
-rw-r--r--sys/kern/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 43c7f68..d6ffdd7 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1473,7 +1473,7 @@ tty_generic_ioctl(struct tty *tp, u_long cmd, void *data, struct thread *td)
return (0);
}
- if (!SESS_LEADER(p) || p->p_session->s_ttyvp != NULL ||
+ if (p->p_session->s_ttyvp != NULL ||
(tp->t_session != NULL && tp->t_session->s_ttyvp != NULL)) {
/*
* There is already a relation between a TTY and
OpenPOWER on IntegriCloud