summaryrefslogtreecommitdiffstats
path: root/sys/dev/ae/if_ae.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ae/if_ae.c')
-rw-r--r--sys/dev/ae/if_ae.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ae/if_ae.c b/sys/dev/ae/if_ae.c
index b887056..0c02c17 100644
--- a/sys/dev/ae/if_ae.c
+++ b/sys/dev/ae/if_ae.c
@@ -85,7 +85,7 @@ static struct ae_dev {
{ VENDORID_ATTANSIC, DEVICEID_ATTANSIC_L2,
"Attansic Technology Corp, L2 FastEthernet" },
};
-#define AE_DEVS_COUNT (sizeof(ae_devs) / sizeof(*ae_devs))
+#define AE_DEVS_COUNT (nitems(ae_devs))
static struct resource_spec ae_res_spec_mem[] = {
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
OpenPOWER on IntegriCloud