summaryrefslogtreecommitdiff
path: root/sys/dev/pci/auich.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/auich.c')
-rw-r--r--sys/dev/pci/auich.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c
index 6d66b6ec0e5..920bd4e50b7 100644
--- a/sys/dev/pci/auich.c
+++ b/sys/dev/pci/auich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auich.c,v 1.93 2010/09/12 03:17:34 jakemsr Exp $ */
+/* $OpenBSD: auich.c,v 1.94 2011/04/03 15:36:02 jasper Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
@@ -372,7 +372,7 @@ auich_match(parent, match, aux)
struct pci_attach_args *pa = aux;
int i;
- for (i = sizeof(auich_devices)/sizeof(auich_devices[0]); i--;)
+ for (i = nitems(auich_devices); i--;)
if (PCI_VENDOR(pa->pa_id) == auich_devices[i].vendor &&
PCI_PRODUCT(pa->pa_id) == auich_devices[i].product)
return 1;
@@ -463,7 +463,7 @@ auich_attach(parent, self, aux)
return;
}
- for (i = sizeof(auich_devices)/sizeof(auich_devices[0]); i--;)
+ for (i = nitems(auich_devices); i--;)
if (PCI_PRODUCT(pa->pa_id) == auich_devices[i].product)
break;