diff options
author | phk <phk@FreeBSD.org> | 2004-06-01 13:49:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-01 13:49:28 +0000 |
commit | 83ae77becd632897687db152538a6e5bb5e92eb1 (patch) | |
tree | 219773bb1bc353479f3267950d51f81b41bdfdb2 /sys/i386/isa | |
parent | 3521579704b6a092199dccaeecd4b1561e5ca508 (diff) | |
download | FreeBSD-src-83ae77becd632897687db152538a6e5bb5e92eb1.zip FreeBSD-src-83ae77becd632897687db152538a6e5bb5e92eb1.tar.gz |
Gainfully employ the new ttyioctl in the trivial cases.
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_drv.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index 0b4fdc0..dcadcdb 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -397,14 +397,7 @@ pcvt_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td) if((error = vgaioctl(dev,cmd,data,flag)) >= 0) return error; - if((error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, td)) - != ENOIOCTL) - return (error); - - if((error = ttioctl(tp, cmd, data, flag)) != ENOIOCTL) - return (error); - - return (ENOTTY); + return (ttyioctl(dev, cmd, data, flag, td)); } /*---------------------------------------------------------------------------* |