]> git.sur5r.net Git - u-boot/blobdiff - post/lib_powerpc/threei.c
post: use ARRAY_SIZE
[u-boot] / post / lib_powerpc / threei.c
index 31953f93543498f1f9d84748001c16ca947af5d5..95b6322687ce6e573d2a3dbd83d631341663da1a 100644 (file)
@@ -75,8 +75,7 @@ static struct cpu_post_threei_s
        0xffff8000
     },
 };
-static unsigned int cpu_post_threei_size =
-    sizeof (cpu_post_threei_table) / sizeof (struct cpu_post_threei_s);
+static unsigned int cpu_post_threei_size = ARRAY_SIZE(cpu_post_threei_table);
 
 int cpu_post_test_threei (void)
 {