diff options
author | peter <peter@FreeBSD.org> | 1999-05-06 18:44:42 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-05-06 18:44:42 +0000 |
commit | 459d4a2cc5e6111860f2c6a86117a230d98dd4e9 (patch) | |
tree | 3ebec15b9f996d9b97c11ef575d325c41cea11f1 /sys/i386/isa/stallion.c | |
parent | daa969b0667e983bbabc44c8ddcda321b70523c5 (diff) | |
download | FreeBSD-src-459d4a2cc5e6111860f2c6a86117a230d98dd4e9.zip FreeBSD-src-459d4a2cc5e6111860f2c6a86117a230d98dd4e9.tar.gz |
Fix up a few easy 'assignment used as truth value' and 'suggest parens
around && within ||' type warnings. I'm pretty sure I have not masked
any problems here, I've committed real problem fixes seperately.
Diffstat (limited to 'sys/i386/isa/stallion.c')
-rw-r--r-- | sys/i386/isa/stallion.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/isa/stallion.c b/sys/i386/isa/stallion.c index 52dbaaf..97b564d 100644 --- a/sys/i386/isa/stallion.c +++ b/sys/i386/isa/stallion.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: stallion.c,v 1.27 1999/04/27 11:15:19 phk Exp $ + * $Id: stallion.c,v 1.28 1999/04/28 10:52:57 dt Exp $ */ /*****************************************************************************/ @@ -2053,7 +2053,8 @@ static void stl_rxprocess(stlport_t *portp) } else { while (portp->rx.tail != head) { ch = (unsigned char) *(portp->rx.tail); - if (status = *(portp->rx.tail + STL_RXBUFSIZE)) { + status = *(portp->rx.tail + STL_RXBUFSIZE); + if (status) { *(portp->rx.tail + STL_RXBUFSIZE) = 0; if (status & ST_BREAK) ch |= TTY_BI; |