summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-23 17:36:53 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-23 17:36:53 +0000
commitf19257666fc51681717bff37f503fe61205a297a (patch)
treed3ed52f675dbde5dc220c7725af82d2d865f4abf /sys/dev
parent3b88f9d4f49c560f79ddc34182a69109cc63d362 (diff)
Please GCC2.8
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/elink3.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/ic/elink3.c b/sys/dev/ic/elink3.c
index 831e2466166..0d930e0d830 100644
--- a/sys/dev/ic/elink3.c
+++ b/sys/dev/ic/elink3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elink3.c,v 1.21 1998/01/17 16:40:38 mickey Exp $ */
+/* $OpenBSD: elink3.c,v 1.22 1998/02/23 17:36:52 niklas Exp $ */
/* $NetBSD: elink3.c,v 1.32 1997/05/14 00:22:00 thorpej Exp $ */
/*
@@ -680,11 +680,9 @@ epsetmedia(sc, medium)
if (!(ifp->if_flags & IFF_LINK0) && (sc->ep_connectors & EPC_BNC))
medium = EPMEDIA_10BASE_2;
else if (ifp->if_flags & IFF_LINK0)
- if ((ifp->if_flags & IFF_LINK1) &&
- (sc->ep_connectors & EPC_UTP))
- medium = EPMEDIA_10BASE_T;
- else
- medium = EPMEDIA_AUI;
+ medium = ((ifp->if_flags & IFF_LINK1) &&
+ (sc->ep_connectors & EPC_UTP)) ?
+ EPMEDIA_10BASE_T : EPMEDIA_AUI;
#endif
/*