diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-28 01:59:53 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-28 01:59:53 +0000 |
commit | 9328688fc8b9743439e9dbe6f6364cb0317e387f (patch) | |
tree | 4f99904371de94ee7846eb8f747ab1e5a1fa463b /sys/i386/isa/if_cs.c | |
parent | c970e06ccf646c8d420b2216f605eefeef3cdc0d (diff) | |
download | FreeBSD-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/i386/isa/if_cs.c')
-rw-r--r-- | sys/i386/isa/if_cs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/if_cs.c b/sys/i386/isa/if_cs.c index 1ddfbca1..4a9c390 100644 --- a/sys/i386/isa/if_cs.c +++ b/sys/i386/isa/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); |