diff options
author | Alex Unleashed <alex@flawedcode.org> | 2007-11-15 02:01:06 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-15 03:45:46 +0100 |
commit | 16ad1b49104684da3ab0fede79f29b01f4c76896 (patch) | |
tree | 941aa34bbe00df34f619526e198d9d6e0124f45c /arch/cris/arch-v10/kernel/setup.c | |
parent | cris build fixes: defconfig updates (diff) | |
download | linux-16ad1b49104684da3ab0fede79f29b01f4c76896.tar.xz linux-16ad1b49104684da3ab0fede79f29b01f4c76896.zip |
cris: ARRAY_SIZE() cleanup
I'm converting most array size calculations under arch/ to use
ARRAY_SIZE(). This is the patch for CRIS.
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Cc: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/cris/arch-v10/kernel/setup.c')
-rw-r--r-- | arch/cris/arch-v10/kernel/setup.c | 4 |
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) revision = rdvr(); - if (revision >= sizeof cpu_info/sizeof *cpu_info) - info = &cpu_info[sizeof cpu_info/sizeof *cpu_info - 1]; + if (revision >= ARRAY_SIZE(cpu_info)) + info = &cpu_info[ARRAY_SIZE(cpu_info) - 1]; else info = &cpu_info[revision]; |