summaryrefslogtreecommitdiff
path: root/sys/dev/rc
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-12-06 13:25:01 +0000
committerBruce Evans <bde@FreeBSD.org>1997-12-06 13:25:01 +0000
commit239b7b699e20533f6884134e5007c7708d67317a (patch)
tree1921294e8fbe5d2f91d066ec237f5402e92b81de /sys/dev/rc
parent27c20503c61a661921e8c226868df0f6399854f7 (diff)
Notes
Diffstat (limited to 'sys/dev/rc')
-rw-r--r--sys/dev/rc/rc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c
index 541e3f529a8d4..8d1e298fddf51 100644
--- a/sys/dev/rc/rc.c
+++ b/sys/dev/rc/rc.c
@@ -1097,11 +1097,11 @@ struct proc *p;
struct tty *tp = rc->rc_tp;
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
- if (error >= 0)
+ if (error != ENOIOCTL)
return (error);
error = ttioctl(tp, cmd, data, flag);
disc_optim(tp, &tp->t_termios, rc);
- if (error >= 0)
+ if (error != ENOIOCTL)
return (error);
s = spltty();