From a1cda79464588cd8489700574b2e8608c1914f95 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 1 Jun 2004 11:38:06 +0000 Subject: 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. --- sys/dev/usb/ubser.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/dev/usb/ubser.c') diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c index 4432f7a9648a..b3edce89fca4 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]); -- cgit v1.2.3