svn commit: r191782 - head/sys/kern

Ed Schouten ed at FreeBSD.org
Mon May 4 11:11:19 UTC 2009


Author: ed
Date: Mon May  4 11:11:10 2009
New Revision: 191782
URL: http://svn.freebsd.org/changeset/base/191782

Log:
  Remove unneeded check for SESS_LEADER().
  
  We perform the same check ~10 lines above.

Modified:
  head/sys/kern/tty.c

Modified: head/sys/kern/tty.c
==============================================================================
--- head/sys/kern/tty.c	Mon May  4 08:41:54 2009	(r191781)
+++ head/sys/kern/tty.c	Mon May  4 11:11:10 2009	(r191782)
@@ -1473,7 +1473,7 @@ tty_generic_ioctl(struct tty *tp, u_long
 			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


More information about the svn-src-all mailing list