summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-05-16 22:23:07 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-05-16 22:23:07 +0000
commit54cf1049b2805f7e5ceb6cdaa3c7d0bdde3a4f5c (patch)
tree0a2aa0aa6308f0740265e8f5324aa716bf6b1e07
parent40e72b193ddc40072574508dc7cf982b4301aea4 (diff)
Simplify bugtty_chkinput(), from mvmeppc.
-rw-r--r--sys/arch/mvme88k/dev/bugtty.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/sys/arch/mvme88k/dev/bugtty.c b/sys/arch/mvme88k/dev/bugtty.c
index 8f11dd81ddf..a37df66a496 100644
--- a/sys/arch/mvme88k/dev/bugtty.c
+++ b/sys/arch/mvme88k/dev/bugtty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bugtty.c,v 1.21 2004/02/10 10:06:48 miod Exp $ */
+/* $OpenBSD: bugtty.c,v 1.22 2004/05/16 22:23:06 miod Exp $ */
/* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 1995 Dale Rahn.
@@ -299,19 +299,14 @@ void
bugtty_chkinput()
{
struct tty *tp;
- int rc = 0;
- tp = bugtty_tty[0]; /* Kinda ugly hack */
- if (tp == NULL )
+
+ tp = bugtty_tty[0]; /* assumes console is the first port */
+ if (tp == NULL)
return;
- if ((rc = buginstat()) != 0) {
- while (buginstat() != 0) {
- u_char c = buginchr() & 0xff;
- (*linesw[tp->t_line].l_rint)(c, tp);
- }
- /*
- wakeup(tp);
- */
+ while (buginstat() != 0) {
+ u_char c = buginchr() & 0xff;
+ (*linesw[tp->t_line].l_rint)(c, tp);
}
}