]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - post/lib_powerpc/cmp.c
post: use ARRAY_SIZE
[people/ms/u-boot.git] / post / lib_powerpc / cmp.c
index 5f6a3b904666ac9ea1b0af5adb166ede5f36d5c2..ae5b72b2c6ec6baebc689454a130800269fce6ec 100644 (file)
@@ -95,8 +95,7 @@ static struct cpu_post_cmp_s
        0x04
     },
 };
-static unsigned int cpu_post_cmp_size =
-    sizeof (cpu_post_cmp_table) / sizeof (struct cpu_post_cmp_s);
+static unsigned int cpu_post_cmp_size = ARRAY_SIZE(cpu_post_cmp_table);
 
 int cpu_post_test_cmp (void)
 {