]> git.sur5r.net Git - u-boot/blobdiff - post/lib_powerpc/srawi.c
post: use ARRAY_SIZE
[u-boot] / post / lib_powerpc / srawi.c
index be153aded21fa9f4e2685a22834022066e534c25..90a1e4daaddf0e7864220cbd6346878463791cf6 100644 (file)
@@ -61,8 +61,7 @@ static struct cpu_post_srawi_s
        0xf0000000
     },
 };
-static unsigned int cpu_post_srawi_size =
-    sizeof (cpu_post_srawi_table) / sizeof (struct cpu_post_srawi_s);
+static unsigned int cpu_post_srawi_size = ARRAY_SIZE(cpu_post_srawi_table);
 
 int cpu_post_test_srawi (void)
 {