summaryrefslogtreecommitdiff
path: root/post/lib_powerpc/threex.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_powerpc/threex.c')
-rw-r--r--post/lib_powerpc/threex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/post/lib_powerpc/threex.c b/post/lib_powerpc/threex.c
index 350a12a..7769218 100644
--- a/post/lib_powerpc/threex.c
+++ b/post/lib_powerpc/threex.c
@@ -125,8 +125,7 @@ static struct cpu_post_threex_s
0x1000
},
};
-static unsigned int cpu_post_threex_size =
- sizeof (cpu_post_threex_table) / sizeof (struct cpu_post_threex_s);
+static unsigned int cpu_post_threex_size = ARRAY_SIZE(cpu_post_threex_table);
int cpu_post_test_threex (void)
{