diff options
author | phk <phk@FreeBSD.org> | 2004-06-01 10:15:56 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-01 10:15:56 +0000 |
commit | d4a4e27cd427b98e5b859dc864e875e75db1e3a8 (patch) | |
tree | 297ba7698e7050ad68368e00d16d58526fec6b5d /sys/dev/usb | |
parent | 92c9a57d01997158b8973aaa88ab6da894a2057d (diff) | |
download | FreeBSD-src-d4a4e27cd427b98e5b859dc864e875e75db1e3a8.zip FreeBSD-src-d4a4e27cd427b98e5b859dc864e875e75db1e3a8.tar.gz |
ttyclose() increments t_gen. Remove redundant increments in drivers.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ubser.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/ucom.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c index 653e2e6..4432f7a 100644 --- a/sys/dev/usb/ubser.c +++ b/sys/dev/usb/ubser.c @@ -441,7 +441,6 @@ bad: if (tp != NULL) { if (tp->t_state & TS_ISOPEN) { (*linesw[tp->t_line].l_close)(tp, 0); - tp->t_gen++; ttyclose(tp); ttwakeup(tp); ttwwakeup(tp); @@ -478,7 +477,6 @@ USB_DETACH(ubser) if (tp != NULL) { if (tp->t_state & TS_ISOPEN) { (*linesw[tp->t_line].l_close)(tp, 0); - tp->t_gen++; ttyclose(tp); ttwakeup(tp); ttwwakeup(tp); diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c index e6bcd82..f713a32 100644 --- a/sys/dev/usb/ucom.c +++ b/sys/dev/usb/ucom.c @@ -214,7 +214,6 @@ ucom_detach(struct ucom_softc *sc) device_printf(sc->sc_dev, "still open, forcing close\n"); (*linesw[tp->t_line].l_close)(tp, 0); - tp->t_gen++; ttyclose(tp); ttwakeup(tp); ttwwakeup(tp); |