summaryrefslogtreecommitdiff
path: root/post/lib_powerpc/twox.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_powerpc/twox.c')
-rw-r--r--post/lib_powerpc/twox.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/post/lib_powerpc/twox.c b/post/lib_powerpc/twox.c
index d6714f9..88140bf 100644
--- a/post/lib_powerpc/twox.c
+++ b/post/lib_powerpc/twox.c
@@ -81,8 +81,7 @@ static struct cpu_post_twox_s
12
},
};
-static unsigned int cpu_post_twox_size =
- sizeof (cpu_post_twox_table) / sizeof (struct cpu_post_twox_s);
+static unsigned int cpu_post_twox_size = ARRAY_SIZE(cpu_post_twox_table);
int cpu_post_test_twox (void)
{