diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index 9fa214f70031..26cd4e342748 100644 --- a/sys/dev/pci/if_nfe.c +++ b/sys/dev/pci/if_nfe.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_nfe.c,v 1.44 2009/03/18 15:14:30 cegger Exp $ */ +/* $NetBSD: if_nfe.c,v 1.45 2009/06/14 06:24:14 cegger Exp $ */ /* $OpenBSD: if_nfe.c,v 1.77 2008/02/05 16:52:50 brad Exp $ */ /*- @@ -21,7 +21,7 @@ /* Driver for NVIDIA nForce MCP Fast Ethernet and Gigabit Ethernet */ #include -__KERNEL_RCSID(0, "$NetBSD: if_nfe.c,v 1.44 2009/03/18 15:14:30 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_nfe.c,v 1.45 2009/06/14 06:24:14 cegger Exp $"); #include "opt_inet.h" #include "bpfilter.h" @@ -203,7 +203,7 @@ nfe_match(device_t dev, cfdata_t match, void *aux) const struct nfe_product *np; int i; - for (i = 0; i < sizeof(nfe_devices) / sizeof(nfe_devices[0]); i++) { + for (i = 0; i < __arraycount(nfe_devices); i++) { np = &nfe_devices[i]; if (PCI_VENDOR(pa->pa_id) == np->vendor && PCI_PRODUCT(pa->pa_id) == np->product)