summaryrefslogtreecommitdiffstats
path: root/sys/dev/zs/zs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/zs/zs.c')
-rw-r--r--sys/dev/zs/zs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/zs/zs.c b/sys/dev/zs/zs.c
index 98f1c7d..6de28ed 100644
--- a/sys/dev/zs/zs.c
+++ b/sys/dev/zs/zs.c
@@ -528,12 +528,8 @@ zsttyioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td)
sc = dev->si_drv1;
tp = dev->si_tty;
- error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flags, td);
- if (error != ENOIOCTL)
- return (error);
-
- error = ttioctl(tp, cmd, data, flags);
- if (error != ENOIOCTL)
+ error = ttyioctl(dev, cmd, data, flags, td);
+ if (error != ENOTTY)
return (error);
error = 0;
OpenPOWER on IntegriCloud