aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ed/if_ed_pci.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-19 23:37:24 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-19 23:37:24 +0000
commit73a1170a8c41cb848f17cc0a8839e9dcee3d126e (patch)
tree346d2ff1b645f831d2f412a7a4be3f6eb1c711b4 /sys/dev/ed/if_ed_pci.c
parent4ec642f1d61bbab5998f7b19281396ee925f82f0 (diff)
sys/dev: use our nitems() macro when it is avaliable through param.h.
No functional change, only trivial cases are done in this sweep, Drivers that can get further enhancements will be done independently. Discussed in: freebsd-current
Notes
Notes: svn path=/head/; revision=298307
Diffstat (limited to 'sys/dev/ed/if_ed_pci.c')
-rw-r--r--sys/dev/ed/if_ed_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ed/if_ed_pci.c b/sys/dev/ed/if_ed_pci.c
index 31b9762f729c..04130df2298f 100644
--- a/sys/dev/ed/if_ed_pci.c
+++ b/sys/dev/ed/if_ed_pci.c
@@ -144,5 +144,5 @@ DRIVER_MODULE(ed, pci, ed_pci_driver, ed_devclass, 0, 0);
MODULE_DEPEND(ed, pci, 1, 1, 1);
MODULE_DEPEND(ed, ether, 1, 1, 1);
MODULE_PNP_INFO("W32:vendor/device;D:human", pci, ed, pci_ids, sizeof(pci_ids[0]),
- sizeof(pci_ids) / sizeof(pci_ids[0]) - 1);
+ nitems(pci_ids) - 1);