x86: io-apic - use ARRAY_SIZE macro

Make the code width a bit shorter with ARRAY_SIZE macro.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Cyrill Gorcunov 2008-09-04 22:37:49 +04:00 committed by Ingo Molnar
parent b558cb35f1
commit 676f4a920b

View File

@ -166,7 +166,7 @@ static void __init init_work(void *data)
memcpy(cfg, irq_cfg_legacy, sizeof(irq_cfg_legacy));
legacy_count = sizeof(irq_cfg_legacy)/sizeof(irq_cfg_legacy[0]);
legacy_count = ARRAY_SIZE(irq_cfg_legacy);
for (i = legacy_count; i < *da->nr; i++)
init_one_irq_cfg(&cfg[i]);