summaryrefslogtreecommitdiffstats
path: root/post/lib_powerpc/rlwimi.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_powerpc/rlwimi.c')
-rw-r--r--post/lib_powerpc/rlwimi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/post/lib_powerpc/rlwimi.c b/post/lib_powerpc/rlwimi.c
index fd628b31f9..15d96aca7b 100644
--- a/post/lib_powerpc/rlwimi.c
+++ b/post/lib_powerpc/rlwimi.c
@@ -62,8 +62,7 @@ static struct cpu_post_rlwimi_s
0xffaaffff
},
};
-static unsigned int cpu_post_rlwimi_size =
- sizeof (cpu_post_rlwimi_table) / sizeof (struct cpu_post_rlwimi_s);
+static unsigned int cpu_post_rlwimi_size = ARRAY_SIZE(cpu_post_rlwimi_table);
int cpu_post_test_rlwimi (void)
{
OpenPOWER on IntegriCloud