diff --git a/sys/kern/tty_outq.c b/sys/kern/tty_outq.c index e945ccab0b48..30df4eb8bdde 100644 --- a/sys/kern/tty_outq.c +++ b/sys/kern/tty_outq.c @@ -250,12 +250,6 @@ ttyoutq_read_uio(struct ttyoutq *to, struct tty *tp, struct uio *uio) error = uiomove(tob->tob_data + cbegin, clen, uio); tty_lock(tp); - if (tty_gone(tp)) { - /* We lost the discipline. */ - uma_zfree(ttyoutq_zone, tob); - return (ENXIO); - } - /* Block can now be readded to the list. */ /* * XXX: we could remove the blocks here when the @@ -282,11 +276,6 @@ ttyoutq_read_uio(struct ttyoutq *to, struct tty *tp, struct uio *uio) error = uiomove(ob, clen, uio); tty_lock(tp); - if (tty_gone(tp)) { - /* We lost the discipline. */ - return (ENXIO); - } - if (error != 0) return (error); }