summaryrefslogtreecommitdiff
path: root/arch/mips/kernel/kspd.c
diff options
context:
space:
mode:
authorAlejandro Martinez Ruiz <alex@flawedcode.org>2007-10-22 23:36:44 +0400
committerRalf Baechle <ralf@linux-mips.org>2008-01-29 13:14:54 +0300
commit2b22c034d04d3632a339d14d5803c8f94e412608 (patch)
tree332d25c97099978d28b644cc1fb405ec982dafdf /arch/mips/kernel/kspd.c
parent161548bf3529d53398adb3451cdc781cc324fc1d (diff)
downloadlinux-2b22c034d04d3632a339d14d5803c8f94e412608.tar.xz
[MIPS] Converting most array size calculations to use ARRAY_SIZE().
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/kspd.c')
-rw-r--r--arch/mips/kernel/kspd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/kernel/kspd.c b/arch/mips/kernel/kspd.c
index d2c2e00e5864..f6704ab16306 100644
--- a/arch/mips/kernel/kspd.c
+++ b/arch/mips/kernel/kspd.c
@@ -161,8 +161,7 @@ static unsigned int translate_open_flags(int flags)
int i;
unsigned int ret = 0;
- for (i = 0; i < (sizeof(open_flags_table) / sizeof(struct apsp_table));
- i++) {
+ for (i = 0; i < ARRAY_SIZE(open_flags_table); i++) {
if( (flags & open_flags_table[i].sp) ) {
ret |= open_flags_table[i].ap;
}