summaryrefslogtreecommitdiffstats
path: root/sys/dev/dgb
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-05-02 21:39:52 +0000
committerpeter <peter@FreeBSD.org>1999-05-02 21:39:52 +0000
commit322c0938f5366b4f604d8a6ca07809aee9870f7e (patch)
treeb76b40fb06c07058104b6feb5c1d545103985e0c /sys/dev/dgb
parentee930285c215e3d49aa65e3f761f7fb6e3207bd9 (diff)
downloadFreeBSD-src-322c0938f5366b4f604d8a6ca07809aee9870f7e.zip
FreeBSD-src-322c0938f5366b4f604d8a6ca07809aee9870f7e.tar.gz
s/size == 0;/size = 0;/
PR: 11409 Submitted by: Christopher Peterson <cpeterso@cs.washington.edu>
Diffstat (limited to 'sys/dev/dgb')
-rw-r--r--sys/dev/dgb/dgb.c6
-rw-r--r--sys/dev/dgb/dgm.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c
index 7da59b0..127dfe9 100644
--- a/sys/dev/dgb/dgb.c
+++ b/sys/dev/dgb/dgb.c
@@ -1,5 +1,5 @@
/*-
- * dgb.c $Id: dgb.c,v 1.45 1999/04/27 11:14:22 phk Exp $
+ * dgb.c $Id: dgb.c,v 1.46 1999/04/28 10:51:55 dt Exp $
*
* Digiboard driver.
*
@@ -2097,11 +2097,11 @@ dgbstart(tp)
if(tail>head) {
size=tail-head-LEAVE_FREE_CHARS;
if (size <0)
- size==0;
+ size=0;
} else {
size=port->txbufsize-head;
if(tail+port->txbufsize < head)
- size==0;
+ size=0;
}
}
#else
diff --git a/sys/dev/dgb/dgm.c b/sys/dev/dgb/dgm.c
index f4243bd..c9d9cab 100644
--- a/sys/dev/dgb/dgm.c
+++ b/sys/dev/dgb/dgm.c
@@ -1,5 +1,5 @@
/*-
- * $Id: dgm.c,v 1.9 1999/04/27 11:14:24 phk Exp $
+ * $Id: dgm.c,v 1.10 1999/04/28 10:51:58 dt Exp $
*
* This driver and the associated header files support the ISA PC/Xem
* Digiboards. Its evolutionary roots are described below.
@@ -1897,11 +1897,11 @@ dgmstart(tp)
if(tail>head) {
size=tail-head-LEAVE_FREE_CHARS;
if (size <0)
- size==0;
+ size=0;
} else {
size=port->txbufsize-head;
if(tail+port->txbufsize < head)
- size==0;
+ size=0;
}
}
#else
OpenPOWER on IntegriCloud