Skip to content

Commit

Permalink
x86: io-apic - use ARRAY_SIZE macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Oct 16, 2008
1 parent b558cb3 commit 676f4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 676f4a9

Please sign in to comment.