Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 2009 11:11:12 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191782 - head/sys/kern
Message-ID:  <200905041111.n44BBCts043760@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905041111.n44BBCts043760>