aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cs/if_cs.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-01-28 01:59:53 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-01-28 01:59:53 +0000
commit0a5e03dda5108aa95d11b714c83217c28a147f6e (patch)
tree748e59fc38cfdff420e3cd6c6eb4f4c5af2273e7 /sys/dev/cs/if_cs.c
parent972a1bcf5db5ee4c5520a1d29d3c81e81bdec84f (diff)
Notes
Diffstat (limited to 'sys/dev/cs/if_cs.c')
-rw-r--r--sys/dev/cs/if_cs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c
index 1ddfbca1888fb..4a9c39093c98c 100644
--- a/sys/dev/cs/if_cs.c
+++ b/sys/dev/cs/if_cs.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: if_cs.c,v 1.7 1998/12/07 21:58:21 archie Exp $
+ * $Id: if_cs.c,v 1.8 1999/01/12 00:27:43 eivind Exp $
*
* Device driver for Crystal Semiconductor CS8920 based ethernet
* adapters. By Maxim Bolotin and Oleg Sharoiko, 27-April-1997
@@ -1215,11 +1215,11 @@ cs_mediaset(struct cs_softc *sc, int media)
case IFM_AUTO:
if ((error=enable_tp(sc))==0)
error = cs_duplex_auto(sc);
- else if (error=enable_bnc(sc))
+ else if ((error=enable_bnc(sc)) != 0)
error = enable_aui(sc);
break;
case IFM_10_T:
- if (error=enable_tp(sc))
+ if ((error=enable_tp(sc)) != 0)
break;
if (media & IFM_FDX)
cs_duplex_full(sc);