Remove unneeded check for SESS_LEADER().

We perform the same check ~10 lines above.
This commit is contained in:
Ed Schouten 2009-05-04 11:11:10 +00:00
parent 64886da216
commit 3382ac3233

View File

@ -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