summaryrefslogtreecommitdiffstats
path: root/sys/dev/le/if_le_isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/le/if_le_isa.c')
-rw-r--r--sys/dev/le/if_le_isa.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/le/if_le_isa.c b/sys/dev/le/if_le_isa.c
index f2a77dd..70a91aa 100644
--- a/sys/dev/le/if_le_isa.c
+++ b/sys/dev/le/if_le_isa.c
@@ -241,8 +241,7 @@ le_isa_probe(device_t dev)
case 0:
return (BUS_PROBE_DEFAULT);
case ENOENT:
- for (i = 0; i < sizeof(le_isa_params) /
- sizeof(le_isa_params[0]); i++) {
+ for (i = 0; i < nitems(le_isa_params); i++) {
if (le_isa_probe_legacy(dev, &le_isa_params[i]) == 0) {
device_set_desc(dev, le_isa_params[i].name);
return (BUS_PROBE_DEFAULT);
@@ -279,8 +278,7 @@ le_isa_attach(device_t dev)
macstride = 1;
break;
case ENOENT:
- for (i = 0; i < sizeof(le_isa_params) /
- sizeof(le_isa_params[0]); i++) {
+ for (i = 0; i < nitems(le_isa_params); i++) {
if (le_isa_probe_legacy(dev, &le_isa_params[i]) == 0) {
lesc->sc_rres = bus_alloc_resource_anywhere(dev,
SYS_RES_IOPORT, &j,
OpenPOWER on IntegriCloud