summaryrefslogtreecommitdiff
path: root/post/lib_powerpc/cmpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_powerpc/cmpi.c')
-rw-r--r--post/lib_powerpc/cmpi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/post/lib_powerpc/cmpi.c b/post/lib_powerpc/cmpi.c
index 1a2fc3d..4160a2a 100644
--- a/post/lib_powerpc/cmpi.c
+++ b/post/lib_powerpc/cmpi.c
@@ -95,8 +95,7 @@ static struct cpu_post_cmpi_s
0x04
},
};
-static unsigned int cpu_post_cmpi_size =
- sizeof (cpu_post_cmpi_table) / sizeof (struct cpu_post_cmpi_s);
+static unsigned int cpu_post_cmpi_size = ARRAY_SIZE(cpu_post_cmpi_table);
int cpu_post_test_cmpi (void)
{