Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Nuke bogus extra variable, too.



details:   https://anonhg.NetBSD.org/src/rev/776dac14836e
branches:  trunk
changeset: 467803:776dac14836e
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Mon Mar 29 13:40:41 1999 +0000

description:
Nuke bogus extra variable, too.

diffstat:

 sys/dev/ic/com.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r fedcff724b64 -r 776dac14836e sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Mon Mar 29 13:21:15 1999 +0000
+++ b/sys/dev/ic/com.c  Mon Mar 29 13:40:41 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com.c,v 1.157 1999/03/29 13:21:15 mycroft Exp $        */
+/*     $NetBSD: com.c,v 1.158 1999/03/29 13:40:41 mycroft Exp $        */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -2174,13 +2174,11 @@
        int c;
 {
        int s = splserial();
-       u_char stat;
        int timo;
 
        /* wait for any pending transmission to finish */
        timo = 1500;
-       while (!ISSET(stat = bus_space_read_1(iot, ioh, com_lsr), LSR_TXRDY)
-           && --timo)
+       while (!ISSET(bus_space_read_1(iot, ioh, com_lsr), LSR_TXRDY) && --timo)
                delay(100);
 
        bus_space_write_1(iot, ioh, com_data, c);
@@ -2188,8 +2186,7 @@
 
        /* wait for this transmission to complete */
        timo = 15000;
-       while (!ISSET(stat = bus_space_read_1(iot, ioh, com_lsr), LSR_TXRDY)
-           && --timo)
+       while (!ISSET(bus_space_read_1(iot, ioh, com_lsr), LSR_TXRDY) && --timo)
                delay(100);
 
        splx(s);



Home | Main Index | Thread Index | Old Index