Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix an inverted test.
details: https://anonhg.NetBSD.org/src/rev/b7cccfb1be39
branches: trunk
changeset: 486315:b7cccfb1be39
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu May 18 17:55:17 2000 +0000
description:
Fix an inverted test.
diffstat:
sys/dev/pci/cz.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r d621030b877a -r b7cccfb1be39 sys/dev/pci/cz.c
--- a/sys/dev/pci/cz.c Thu May 18 15:39:22 2000 +0000
+++ b/sys/dev/pci/cz.c Thu May 18 17:55:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cz.c,v 1.1 2000/05/17 17:58:10 thorpej Exp $ */
+/* $NetBSD: cz.c,v 1.2 2000/05/18 17:55:17 thorpej Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -1010,7 +1010,7 @@
return (0);
bad:
- if (!ISSET(tp->t_state, TS_ISOPEN) == 0 && tp->t_wopen == 0) {
+ if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
/*
* We failed to open the device, and nobody else had it opened.
* Clean up the state as appropriate.
@@ -1033,13 +1033,13 @@
struct tty *tp = sc->sc_tty;
/* XXX This is for cons.c. */
- if (ISSET(tp->t_state, TS_ISOPEN) == 0)
+ if (!ISSET(tp->t_state, TS_ISOPEN))
return (0);
(*linesw[tp->t_line].l_close)(tp, flags);
ttyclose(tp);
- if (ISSET(tp->t_state, TS_ISOPEN) == 0 && tp->t_wopen == 0) {
+ if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
/*
* Although we got a last close, the device may still be in
* use; e.g. if this was the dialout node, and there are still
Home |
Main Index |
Thread Index |
Old Index