summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-10-12 21:00:19 +0000
committerphk <phk@FreeBSD.org>2004-10-12 21:00:19 +0000
commit8dea3c151980075328b560d9890545216cb6bb1b (patch)
treefab47a80705eebe13c82cdcb9049696324a371dd
parente948dce998d6a477a8f24aaabd7c6447df2c17a4 (diff)
downloadFreeBSD-src-8dea3c151980075328b560d9890545216cb6bb1b.zip
FreeBSD-src-8dea3c151980075328b560d9890545216cb6bb1b.tar.gz
Remove asserts which are not correct if the port is a tty.
-rw-r--r--sys/dev/uart/uart_tty.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c
index d480019..73ff7f2 100644
--- a/sys/dev/uart/uart_tty.c
+++ b/sys/dev/uart/uart_tty.c
@@ -146,13 +146,8 @@ uart_tty_close(struct tty *tp)
struct uart_softc *sc;
sc = tp->t_sc;
- if (sc == NULL || sc->sc_leaving)
- return;
- if (!sc->sc_opened) {
- KASSERT(!(tp->t_state & TS_ISOPEN), ("foo"));
+ if (sc == NULL || sc->sc_leaving || !sc->sc_opened)
return;
- }
- KASSERT(tp->t_state & TS_ISOPEN, ("foo"));
if (sc->sc_hwiflow)
UART_IOCTL(sc, UART_IOCTL_IFLOW, 0);
@@ -162,7 +157,6 @@ uart_tty_close(struct tty *tp)
UART_SETSIG(sc, SER_DDTR | SER_DRTS);
wakeup(sc);
- KASSERT(!(tp->t_state & TS_ISOPEN), ("foo"));
sc->sc_opened = 0;
return;
}
OpenPOWER on IntegriCloud