summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwn.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2008-11-25 22:20:12 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2008-11-25 22:20:12 +0000
commit73e92816f965abe7bed854402453e8a568f802c1 (patch)
treeed9977adebb411d6fa247604fcee47dfdd7f58e3 /sys/dev/pci/if_iwn.c
parentd69871e8580da6ee2c3f62ac8cea87938e65dedc (diff)
more sizeof->nitems
Diffstat (limited to 'sys/dev/pci/if_iwn.c')
-rw-r--r--sys/dev/pci/if_iwn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index 1933e9515ba..6f6c33b9180 100644
--- a/sys/dev/pci/if_iwn.c
+++ b/sys/dev/pci/if_iwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwn.c,v 1.39 2008/11/25 21:43:57 damien Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.40 2008/11/25 22:20:11 damien Exp $ */
/*-
* Copyright (c) 2007, 2008
@@ -304,7 +304,7 @@ int
iwn_match(struct device *parent, void *match, void *aux)
{
return pci_matchbyid((struct pci_attach_args *)aux, iwn_devices,
- sizeof iwn_devices / sizeof iwn_devices[0]);
+ nitems(iwn_devices));
}
void