projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b558cb3
)
x86: io-apic - use ARRAY_SIZE macro
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Thu, 4 Sep 2008 18:37:49 +0000
(22:37 +0400)
committer
Ingo 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/io_apic.c
b/arch/x86/kernel/io_apic.c
index 93ceb19d1e90e39cac4dfcfb7d1592bfd5d7267e..9b01fdadcb9b4cf0e12bd49227e67eaa1db92537 100644
(file)
--- 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]);