summaryrefslogtreecommitdiff
path: root/sys/dev/sio/sio.c
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/sio/sio.c
parent27c20503c61a661921e8c226868df0f6399854f7 (diff)
Notes
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r--sys/dev/sio/sio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 5d5c26e93c2f..a0763da9cad6 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.188 1997/11/02 21:26:14 nate Exp $
+ * $Id: sio.c,v 1.189 1997/11/20 15:48:41 nate Exp $
*/
#include "opt_comconsole.h"
@@ -1730,12 +1730,12 @@ sioioctl(dev, cmd, data, flag, p)
dt->c_ospeed = tp->t_ospeed;
}
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
- if (error >= 0)
+ if (error != ENOIOCTL)
return (error);
s = spltty();
error = ttioctl(tp, cmd, data, flag);
disc_optim(tp, &tp->t_termios, com);
- if (error >= 0) {
+ if (error != ENOIOCTL) {
splx(s);
return (error);
}