]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: io-apic - use ARRAY_SIZE macro
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 4 Sep 2008 18:37:49 +0000 (22:37 +0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:06 +0000 (16:53 +0200)
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>
arch/x86/kernel/io_apic.c

index 93ceb19d1e90e39cac4dfcfb7d1592bfd5d7267e..9b01fdadcb9b4cf0e12bd49227e67eaa1db92537 100644 (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]);