summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cy/cy.c6
-rw-r--r--sys/dev/cy/cy_isa.c6
-rw-r--r--sys/dev/dgb/dgb.c6
-rw-r--r--sys/dev/rc/rc.c4
-rw-r--r--sys/dev/rp/rp.c4
-rw-r--r--sys/dev/si/si.c6
-rw-r--r--sys/dev/sio/sio.c6
-rw-r--r--sys/dev/syscons/syscons.c6
8 files changed, 22 insertions, 22 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index 5f17800..69202e9 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.55 1997/09/21 21:40:57 gibbs Exp $
+ * $Id: cy.c,v 1.56 1997/11/10 15:46:33 bde Exp $
*/
#include "cy.h"
@@ -1463,12 +1463,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/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index 5f17800..69202e9 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.55 1997/09/21 21:40:57 gibbs Exp $
+ * $Id: cy.c,v 1.56 1997/11/10 15:46:33 bde Exp $
*/
#include "cy.h"
@@ -1463,12 +1463,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/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c
index a146720..da023aa 100644
--- a/sys/dev/dgb/dgb.c
+++ b/sys/dev/dgb/dgb.c
@@ -1,5 +1,5 @@
/*-
- * dgb.c $Id: dgb.c,v 1.27 1997/07/01 00:22:35 bde Exp $
+ * dgb.c $Id: dgb.c,v 1.28 1997/09/14 03:19:00 peter Exp $
*
* Digiboard driver.
*
@@ -1688,13 +1688,13 @@ dgbioctl(dev, cmd, data, flag, p)
port->mustdrain=1;
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);
port->mustdrain=0;
- if (error >= 0) {
+ if (error != ENOIOCTL) {
splx(s);
if (cmd == TIOCSETA || cmd == TIOCSETAW || cmd == TIOCSETAF) {
DPRINT6(DB_PARAM,"dgb%d: port%d: dgbioctl-RES c=0x%x i=0x%x l=0x%x\n",unit,pnum,tp->t_cflag,tp->t_iflag,tp->t_lflag);
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c
index 541e3f5..8d1e298 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();
diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c
index 580e4cc..3a0507a 100644
--- a/sys/dev/rp/rp.c
+++ b/sys/dev/rp/rp.c
@@ -1687,7 +1687,7 @@ rpioctl(dev, cmd, data, flag, p)
t = &tp->t_termios;
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
- if(error >= 0) {
+ if(error != ENOIOCTL) {
return(error);
}
oldspl = spltty();
@@ -1697,7 +1697,7 @@ rpioctl(dev, cmd, data, flag, p)
error = ttioctl(tp, cmd, data, flag);
flags = rp->rp_channel.TxControl[3];
rp_disc_optim(tp, &tp->t_termios, rp);
- if(error >= 0) {
+ if(error != ENOIOCTL) {
splx(oldspl);
return(error);
}
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 6c4f899..1c72960 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.60 1997/09/14 03:19:18 peter Exp $
+ * $Id: si.c,v 1.61 1997/09/21 21:41:37 gibbs Exp $
*/
#ifndef lint
@@ -1174,14 +1174,14 @@ siioctl(dev, cmd, data, flag, p)
}
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
- if (error >= 0)
+ if (error != ENOIOCTL)
goto out;
oldspl = spltty();
error = ttioctl(tp, cmd, data, flag);
si_disc_optim(tp, &tp->t_termios, pp);
- if (error >= 0)
+ if (error != ENOIOCTL)
goto outspl;
switch (cmd) {
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 5d5c26e..a0763da 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);
}
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 43c62ad..9e6353c 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/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.239 1997/11/21 11:37:05 yokota Exp $
+ * $Id: syscons.c,v 1.240 1997/11/25 12:44:44 sos Exp $
*/
#include "sc.h"
@@ -1693,10 +1693,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);
}
OpenPOWER on IntegriCloud