summaryrefslogtreecommitdiffstats
path: root/sys/dev/cs
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-28 01:59:53 +0000
committerdillon <dillon@FreeBSD.org>1999-01-28 01:59:53 +0000
commit9328688fc8b9743439e9dbe6f6364cb0317e387f (patch)
tree4f99904371de94ee7846eb8f747ab1e5a1fa463b /sys/dev/cs
parentc970e06ccf646c8d420b2216f605eefeef3cdc0d (diff)
downloadFreeBSD-src-9328688fc8b9743439e9dbe6f6364cb0317e387f.zip
FreeBSD-src-9328688fc8b9743439e9dbe6f6364cb0317e387f.tar.gz
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/dev/cs')
-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 1ddfbca1..4a9c390 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);
OpenPOWER on IntegriCloud