diff options
author | phk <phk@FreeBSD.org> | 2004-06-01 11:38:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-01 11:38:06 +0000 |
commit | b59eec9a5a18464d17e1f879eeefcbfe26db54b9 (patch) | |
tree | bee822db2fefe2c11a8e1742dffbe5cc412473a9 /sys/dev/usb/ubser.c | |
parent | 70c10dad98698d3cdec7c690b438ae16205a4830 (diff) | |
download | FreeBSD-src-b59eec9a5a18464d17e1f879eeefcbfe26db54b9.zip FreeBSD-src-b59eec9a5a18464d17e1f879eeefcbfe26db54b9.tar.gz |
There is no need to explicitly call ttwakeup() and ttwwakeup() after
ttyclose() has been called. It's already been done once by ttyclose,
and probably once by the line-discipline too.
Diffstat (limited to 'sys/dev/usb/ubser.c')
-rw-r--r-- | sys/dev/usb/ubser.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c index 4432f7a..b3edce8 100644 --- a/sys/dev/usb/ubser.c +++ b/sys/dev/usb/ubser.c @@ -442,8 +442,6 @@ bad: if (tp->t_state & TS_ISOPEN) { (*linesw[tp->t_line].l_close)(tp, 0); ttyclose(tp); - ttwakeup(tp); - ttwwakeup(tp); } } destroy_dev(sc->dev[i]); @@ -478,8 +476,6 @@ USB_DETACH(ubser) if (tp->t_state & TS_ISOPEN) { (*linesw[tp->t_line].l_close)(tp, 0); ttyclose(tp); - ttwakeup(tp); - ttwwakeup(tp); } } destroy_dev(sc->dev[i]); |