aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v10/kernel/io_interface_mux.c
diff options
context:
space:
mode:
authorAlex Unleashed <alex@flawedcode.org>2007-11-14 17:01:06 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-14 18:45:46 -0800
commit16ad1b49104684da3ab0fede79f29b01f4c76896 (patch)
tree941aa34bbe00df34f619526e198d9d6e0124f45c /arch/cris/arch-v10/kernel/io_interface_mux.c
parentf150f35232daaedd86e46d2581e3b7eb40e2c360 (diff)
downloadkernel_samsung_tuna-16ad1b49104684da3ab0fede79f29b01f4c76896.zip
kernel_samsung_tuna-16ad1b49104684da3ab0fede79f29b01f4c76896.tar.gz
kernel_samsung_tuna-16ad1b49104684da3ab0fede79f29b01f4c76896.tar.bz2
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/io_interface_mux.c')
-rw-r--r--arch/cris/arch-v10/kernel/io_interface_mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v10/kernel/io_interface_mux.c b/arch/cris/arch-v10/kernel/io_interface_mux.c
index 29d48ad..3a9114e 100644
--- a/arch/cris/arch-v10/kernel/io_interface_mux.c
+++ b/arch/cris/arch-v10/kernel/io_interface_mux.c
@@ -304,7 +304,7 @@ static unsigned char clear_group_from_set(const unsigned char groups, struct if_
static struct if_group *get_group(const unsigned char groups)
{
int i;
- for (i = 0; i < sizeof(if_groups)/sizeof(struct if_group); i++) {
+ for (i = 0; i < ARRAY_SIZE(if_groups); i++) {
if (groups & if_groups[i].group) {
return &if_groups[i];
}