summaryrefslogtreecommitdiffstats
path: root/post/lib_powerpc/andi.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_powerpc/andi.c')
-rw-r--r--post/lib_powerpc/andi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/post/lib_powerpc/andi.c b/post/lib_powerpc/andi.c
index 52ec7c4d4e..2791cd73b1 100644
--- a/post/lib_powerpc/andi.c
+++ b/post/lib_powerpc/andi.c
@@ -61,8 +61,7 @@ static struct cpu_post_andi_s
0x80000000
},
};
-static unsigned int cpu_post_andi_size =
- sizeof (cpu_post_andi_table) / sizeof (struct cpu_post_andi_s);
+static unsigned int cpu_post_andi_size = ARRAY_SIZE(cpu_post_andi_table);
int cpu_post_test_andi (void)
{
OpenPOWER on IntegriCloud