diff options
Diffstat (limited to 'sys/dev/usb/ubser.c')
-rw-r--r-- | sys/dev/usb/ubser.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c index b3edce8..59ad8d5 100644 --- a/sys/dev/usb/ubser.c +++ b/sys/dev/usb/ubser.c @@ -971,18 +971,12 @@ ubser_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, usb_proc_ptr p) if (sc->sc_dying) return (EIO); - error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p); - if (error >= 0) { + error = ttyioctl(dev, cmd, data, flag, p); + if (error != ENOTTY) { DPRINTF(("ubser_ioctl: l_ioctl: error = %d\n", error)); return (error); } - error = ttioctl(tp, cmd, data, flag); - if (error >= 0) { - DPRINTF(("ubser_ioctl: ttioctl: error = %d\n", error)); - return (error); - } - error = 0; s = spltty(); |