Remove unused tty_gone() checks inside ttyoutq_read_uio().

When my earlier MPSAFE TTY prototypes still implemented line
disciplines, we needed a mechanism to abort read()'s on PTY master
devices when inside the line discipline. Because this is no longer the
case, these checks have become unneeded.
This commit is contained in:
Ed Schouten 2008-08-23 13:32:21 +00:00
parent f8f8c9f0d6
commit ce570f82cc

View File

@ -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);
}