diff options
author | phk <phk@FreeBSD.org> | 2004-10-12 21:00:19 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-12 21:00:19 +0000 |
commit | 8dea3c151980075328b560d9890545216cb6bb1b (patch) | |
tree | fab47a80705eebe13c82cdcb9049696324a371dd /sys/dev | |
parent | e948dce998d6a477a8f24aaabd7c6447df2c17a4 (diff) | |
download | FreeBSD-src-8dea3c151980075328b560d9890545216cb6bb1b.zip FreeBSD-src-8dea3c151980075328b560d9890545216cb6bb1b.tar.gz |
Remove asserts which are not correct if the port is a tty.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/uart/uart_tty.c | 8 |
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; } |