summaryrefslogtreecommitdiff
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-06-04 08:02:37 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-06-04 08:02:37 +0000
commite451f9b758040542701d72994b457233fe2529a7 (patch)
tree96f709f4adacd5078943626c84918a97005223bc /sys/dev/cy
parentd1afdc6644ad956e9bbfd4e679bf09dc5461bbcd (diff)
Notes
Diffstat (limited to 'sys/dev/cy')
-rw-r--r--sys/dev/cy/cy.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index 194b01c1620d..c6e72205f9d8 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -1611,16 +1611,11 @@ sioioctl(dev, cmd, data, flag, td)
if (lt->c_ospeed != 0)
dt->c_ospeed = tp->t_ospeed;
}
- error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, td);
- if (error != ENOIOCTL)
- return (error);
- s = spltty();
- error = ttioctl(tp, cmd, data, flag);
+ error = ttyioctl(dev, cmd, data, flag, td);
disc_optim(tp, &tp->t_termios, com);
- if (error != ENOIOCTL) {
- splx(s);
+ if (error != ENOTTY)
return (error);
- }
+ s = spltty();
switch (cmd) {
case TIOCSBRK:
#if 0