aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sab
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sab')
-rw-r--r--sys/dev/sab/sab.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/sab/sab.c b/sys/dev/sab/sab.c
index de8873163ac7..e546e24a4bc1 100644
--- a/sys/dev/sab/sab.c
+++ b/sys/dev/sab/sab.c
@@ -731,12 +731,8 @@ sabttyioctl(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;