aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2004-02-15 00:43:22 +0000
committerRobert Watson <rwatson@FreeBSD.org>2004-02-15 00:43:22 +0000
commit402d7aa8849949ed86127f56d17c19f143d15b95 (patch)
tree052855c3c04f6b664bbe31b6476e84357b96dbcb /sys
parentc6d9ef2e1f03336ec722c17b18660ac0f6f93f98 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty_pty.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 874f0ba273c4..a01851d905e9 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -182,11 +182,10 @@ ptsopen(dev, flag, devtype, td)
tp->t_lflag = TTYDEF_LFLAG;
tp->t_cflag = TTYDEF_CFLAG;
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
- } else if (tp->t_state & TS_XCLUDE && suser(td)) {
+ } else if (tp->t_state & TS_XCLUDE && suser(td))
return (EBUSY);
- } else if (pti->pt_prison != td->td_ucred->cr_prison) {
+ else if (pti->pt_prison != td->td_ucred->cr_prison)
return (EBUSY);
- }
if (tp->t_oproc) /* Ctrlr still around. */
(void)(*linesw[tp->t_line].l_modem)(tp, 1);
while ((tp->t_state & TS_CARR_ON) == 0) {