summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-02-15 00:43:22 +0000
committerrwatson <rwatson@FreeBSD.org>2004-02-15 00:43:22 +0000
commit9af8bd8baa206664c28697f84ffeb0d10c1607a6 (patch)
tree052855c3c04f6b664bbe31b6476e84357b96dbcb /sys/kern
parentaae81a61cfac89287f791a1fb638927b5a8e2085 (diff)
downloadFreeBSD-src-9af8bd8baa206664c28697f84ffeb0d10c1607a6.zip
FreeBSD-src-9af8bd8baa206664c28697f84ffeb0d10c1607a6.tar.gz
Remove excess brackets.
Diffstat (limited to 'sys/kern')
-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 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) {
OpenPOWER on IntegriCloud