summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-09-04 22:37:49 +0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:53:06 +0200
commit676f4a920be27160747439fe71026aa15ec78e5a (patch)
treea6a29f7e93be5b09a3762928dd633fb432609902 /arch
parentb558cb35f1ef92837cba0fba9aad267e5eff1f65 (diff)
downloadlinux-stable-676f4a920be27160747439fe71026aa15ec78e5a.tar.gz
linux-stable-676f4a920be27160747439fe71026aa15ec78e5a.tar.bz2
linux-stable-676f4a920be27160747439fe71026aa15ec78e5a.zip
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/io_apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 93ceb19d1e90..9b01fdadcb9b 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]);