diff options
Diffstat (limited to 'sys/dev/ed')
-rw-r--r-- | sys/dev/ed/if_ed_hpp.c | 2 | ||||
-rw-r--r-- | sys/dev/ed/if_ed_isa.c | 2 | ||||
-rw-r--r-- | sys/dev/ed/if_ed_pci.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ed/if_ed_hpp.c b/sys/dev/ed/if_ed_hpp.c index ec5c8db268bd..85df356b617c 100644 --- a/sys/dev/ed/if_ed_hpp.c +++ b/sys/dev/ed/if_ed_hpp.c @@ -214,7 +214,7 @@ ed_probe_HP_pclanp(device_t dev, int port_rid, int flags) * Check for impossible IRQ. */ - if (irq >= (sizeof(ed_hpp_intr_val) / sizeof(ed_hpp_intr_val[0]))) + if (irq >= (nitems(ed_hpp_intr_val))) return (ENXIO); /* diff --git a/sys/dev/ed/if_ed_isa.c b/sys/dev/ed/if_ed_isa.c index 7b1a6b7c755a..7b974dc27f63 100644 --- a/sys/dev/ed/if_ed_isa.c +++ b/sys/dev/ed/if_ed_isa.c @@ -202,5 +202,5 @@ DRIVER_MODULE(ed, isa, ed_isa_driver, ed_devclass, 0, 0); MODULE_DEPEND(ed, isa, 1, 1, 1); MODULE_DEPEND(ed, ether, 1, 1, 1); MODULE_PNP_INFO("E:pnpid;", isa, ed, ed_ids, sizeof(ed_ids[0]), - sizeof(ed_ids) / sizeof(ed_ids[0]) - 1); + nitems(ed_ids) - 1); 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); |