aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98
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/pc98
parent27c20503c61a661921e8c226868df0f6399854f7 (diff)
Notes
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/sio.c6
-rw-r--r--sys/pc98/pc98/sio.c6
-rw-r--r--sys/pc98/pc98/syscons.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index 1a034b230c60..1189f27bf25d 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.42 1997/11/03 02:30:45 kato Exp $
+ * $Id: sio.c,v 1.43 1997/11/25 09:42:26 kato Exp $
*/
#include "opt_comconsole.h"
@@ -2237,12 +2237,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);
}
diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c
index 1a034b230c60..1189f27bf25d 100644
--- a/sys/pc98/pc98/sio.c
+++ b/sys/pc98/pc98/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.42 1997/11/03 02:30:45 kato Exp $
+ * $Id: sio.c,v 1.43 1997/11/25 09:42:26 kato Exp $
*/
#include "opt_comconsole.h"
@@ -2237,12 +2237,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);
}
diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c
index 1e668710c48b..bb0eec493667 100644
--- a/sys/pc98/pc98/syscons.c
+++ b/sys/pc98/pc98/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.63 1997/11/25 09:51:43 kato Exp $
+ * $Id: syscons.c,v 1.64 1997/11/27 10:14:11 kato Exp $
*/
#include "sc.h"
@@ -1974,10 +1974,10 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
}
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);
- if (error >= 0)
+ if (error != ENOIOCTL)
return(error);
return(ENOTTY);
}