summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/dcons/dcons.c1
-rw-r--r--sys/dev/sio/sio.c1
-rw-r--r--sys/dev/usb/ubser.c2
-rw-r--r--sys/dev/usb/ucom.c1
-rw-r--r--sys/pc98/cbus/sio.c1
-rw-r--r--sys/pc98/pc98/sio.c1
6 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/dcons/dcons.c b/sys/dev/dcons/dcons.c
index f72bb79f4103..ecdbadb1cb68 100644
--- a/sys/dev/dcons/dcons.c
+++ b/sys/dev/dcons/dcons.c
@@ -586,7 +586,6 @@ dcons_detach(int port)
if (tp->t_state & TS_ISOPEN) {
printf("dcons: still opened\n");
(*linesw[tp->t_line].l_close)(tp, 0);
- tp->t_gen++;
ttyclose(tp);
ttwakeup(tp);
ttwwakeup(tp);
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 192973d8061a..dcbaedf8fc1b 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -455,7 +455,6 @@ siodetach(dev)
if (com->tp && (com->tp->t_state & TS_ISOPEN)) {
device_printf(dev, "still open, forcing close\n");
(*linesw[com->tp->t_line].l_close)(com->tp, 0);
- com->tp->t_gen++;
ttyclose(com->tp);
ttwakeup(com->tp);
ttwwakeup(com->tp);
diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c
index 653e2e646d45..4432f7a9648a 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 e6bcd8278375..f713a32f153e 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);
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index ba3df52e161c..cf72607a1821 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -783,7 +783,6 @@ siodetach(dev)
if (com->tp && (com->tp->t_state & TS_ISOPEN)) {
device_printf(dev, "still open, forcing close\n");
(*linesw[com->tp->t_line].l_close)(com->tp, 0);
- com->tp->t_gen++;
ttyclose(com->tp);
ttwakeup(com->tp);
ttwwakeup(com->tp);
diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c
index ba3df52e161c..cf72607a1821 100644
--- a/sys/pc98/pc98/sio.c
+++ b/sys/pc98/pc98/sio.c
@@ -783,7 +783,6 @@ siodetach(dev)
if (com->tp && (com->tp->t_state & TS_ISOPEN)) {
device_printf(dev, "still open, forcing close\n");
(*linesw[com->tp->t_line].l_close)(com->tp, 0);
- com->tp->t_gen++;
ttyclose(com->tp);
ttwakeup(com->tp);
ttwwakeup(com->tp);