From: Cyrill Gorcunov Date: Thu, 4 Sep 2008 18:37:49 +0000 (+0400) Subject: x86: io-apic - use ARRAY_SIZE macro X-Git-Tag: v2.6.28-rc1~80^2~60 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=676f4a920be27160747439fe71026aa15ec78e5a;p=linux-2.6-omap-h63xx.git x86: io-apic - use ARRAY_SIZE macro Make the code width a bit shorter with ARRAY_SIZE macro. Signed-off-by: Cyrill Gorcunov Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c index 93ceb19d1e9..9b01fdadcb9 100644 --- a/arch/x86/kernel/io_apic.c +++ b/arch/x86/kernel/io_apic.c @@ -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]);