summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-03-28 12:26:40 +0000
committerache <ache@FreeBSD.org>1995-03-28 12:26:40 +0000
commitffb698bc12c7f10026218df04cbefb70c3e84b53 (patch)
treea7e7b29175b4f4b6567975e472886e6d49a6d50b /sys/dev/sio
parentb9aeb29c71254c6addbbe291a4dc1a7f3a501243 (diff)
downloadFreeBSD-src-ffb698bc12c7f10026218df04cbefb70c3e84b53.zip
FreeBSD-src-ffb698bc12c7f10026218df04cbefb70c3e84b53.tar.gz
Don't use
if (tp->t_line != 0) test when CS_ODONE, it fails for NTTYDISC, use if (linesw[tp->t_line].l_start != ttstart) instead. Reviewed by: Submitted by: Obtained from: CVS:
Diffstat (limited to 'sys/dev/sio')
-rw-r--r--sys/dev/sio/sio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 70d0f4d..c0a232f 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.74 1995/03/28 10:51:59 ache Exp $
+ * $Id: sio.c,v 1.75 1995/03/28 11:13:44 ache Exp $
*/
#include "sio.h"
@@ -1525,8 +1525,7 @@ repeat:
}
if (com->state & CS_ODONE) {
comflush(com);
- /* XXX - why isn't the table used for t_line == 0? */
- if (tp->t_line != 0)
+ if (linesw[tp->t_line].l_start != ttstart)
(*linesw[tp->t_line].l_start)(tp);
else
comstart(tp);
OpenPOWER on IntegriCloud