summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-05-13 01:37:27 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-05-13 01:37:27 +0000
commit7e5a9b60f2fba8de719d7f511bdd7dbc42deec00 (patch)
tree566469860a59f8653eab71dddb17c4f11e3e1df5 /sys
parent887b8796fcd8440160b1d58d410344326dd9a53e (diff)
Use the LINK_STATE_IS_UP macro when checking for the link being UP.
ok dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_art.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_art.c b/sys/dev/pci/if_art.c
index 558a283212d..0343702d60e 100644
--- a/sys/dev/pci/if_art.c
+++ b/sys/dev/pci/if_art.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_art.c,v 1.14 2007/09/17 17:34:22 brad Exp $ */
+/* $OpenBSD: if_art.c,v 1.15 2008/05/13 01:37:26 brad Exp $ */
/*
* Copyright (c) 2004,2005 Internet Business Solutions AG, Zurich, Switzerland
@@ -336,7 +336,7 @@ art_ifm_status(struct ifnet *ifp, struct ifmediareq *ifmreq)
ac = (struct art_softc *)
((struct channel_softc *)ifp->if_softc)->cc_parent;
ifmreq->ifm_status = IFM_AVALID;
- if (ifp->if_link_state == LINK_STATE_UP)
+ if (LINK_STATE_IS_UP(ifp->if_link_state))
ifmreq->ifm_status |= IFM_ACTIVE;
ifmreq->ifm_active = ac->art_media;
@@ -401,7 +401,7 @@ art_onesec(void *arg)
if (link_state != ifp->if_link_state) {
s = splsoftnet();
- if (link_state == LINK_STATE_UP)
+ if (LINK_STATE_IS_UP(link_state))
ppp->pp_up(ppp);
else
ppp->pp_down(ppp);
@@ -425,7 +425,7 @@ art_linkstate(void *arg)
struct art_softc *ac = arg;
struct ifnet *ifp = ac->art_channel->cc_ifp;
- if (ifp->if_link_state == LINK_STATE_UP)
+ if (LINK_STATE_IS_UP(ifp->if_link_state))
/* turn red led off */
ebus_set_led(ac->art_channel, 0, MUSYCC_LED_RED);
else