summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-01-30 09:54:25 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-01-30 09:54:25 +0000
commit3cdaaaa00b23364a0b69c019302f2dec95e5ab93 (patch)
treef0b66879437f7c10417aebeec03d903ceb4287c1 /sys/dev/pci
parent1ae37a9b6e1c3195c34ece47be05e6b895a46fff (diff)
update vic(4) to use the LINK_STATE_IS_UP() macro
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_vic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c
index 791e8537681..605b31842f8 100644
--- a/sys/dev/pci/if_vic.c
+++ b/sys/dev/pci/if_vic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vic.c,v 1.38 2006/12/14 10:10:20 dlg Exp $ */
+/* $OpenBSD: if_vic.c,v 1.39 2007/01/30 09:54:24 reyk Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
@@ -935,7 +935,7 @@ vic_media_status(struct ifnet *ifp, struct ifmediareq *imr)
vic_link_state(sc);
- if (ifp->if_link_state == LINK_STATE_UP &&
+ if (LINK_STATE_IS_UP(ifp->if_link_state) &&
ifp->if_flags & IFF_UP)
imr->ifm_status |= IFM_ACTIVE;
}