aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v10/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris/arch-v10/kernel/setup.c')
-rw-r--r--arch/cris/arch-v10/kernel/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/cris/arch-v10/kernel/setup.c b/arch/cris/arch-v10/kernel/setup.c
index ad410afe3cc3..de27b50b72a2 100644
--- a/arch/cris/arch-v10/kernel/setup.c
+++ b/arch/cris/arch-v10/kernel/setup.c
@@ -57,8 +57,8 @@ int show_cpuinfo(struct seq_file *m, void *v)
57 57
58 revision = rdvr(); 58 revision = rdvr();
59 59
60 if (revision >= sizeof cpu_info/sizeof *cpu_info) 60 if (revision >= ARRAY_SIZE(cpu_info))
61 info = &cpu_info[sizeof cpu_info/sizeof *cpu_info - 1]; 61 info = &cpu_info[ARRAY_SIZE(cpu_info) - 1];
62 else 62 else
63 info = &cpu_info[revision]; 63 info = &cpu_info[revision];
64 64