summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_vge.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-04-03 15:36:04 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-04-03 15:36:04 +0000
commit000aa3a35a0346024da8aeb1ddd117a714ab1a98 (patch)
treee30c1afbb9ad547a742ef2e358c4067139433873 /sys/dev/pci/if_vge.c
parent445a93dfa951cfdb8d9253fd13836d6a25a4ac4b (diff)
use nitems(); no binary change for drivers that are compiled on amd64.
ok claudio@
Diffstat (limited to 'sys/dev/pci/if_vge.c')
-rw-r--r--sys/dev/pci/if_vge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vge.c b/sys/dev/pci/if_vge.c
index 21af7e90866..953a811de9f 100644
--- a/sys/dev/pci/if_vge.c
+++ b/sys/dev/pci/if_vge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vge.c,v 1.48 2010/08/27 17:08:00 jsg Exp $ */
+/* $OpenBSD: if_vge.c,v 1.49 2011/04/03 15:36:03 jasper Exp $ */
/* $FreeBSD: if_vge.c,v 1.3 2004/09/11 22:13:25 wpaul Exp $ */
/*
* Copyright (c) 2004
@@ -572,7 +572,7 @@ int
vge_probe(struct device *dev, void *match, void *aux)
{
return (pci_matchbyid((struct pci_attach_args *)aux, vge_devices,
- sizeof(vge_devices)/sizeof(vge_devices[0])));
+ nitems(vge_devices)));
}
/*