From 9af8bd8baa206664c28697f84ffeb0d10c1607a6 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sun, 15 Feb 2004 00:43:22 +0000 Subject: Remove excess brackets. --- sys/kern/tty_pty.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 874f0ba..a01851d 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) { -- cgit v1.1