]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - post/cpu/ppc4xx/spr.c
post: use ARRAY_SIZE
[people/ms/u-boot.git] / post / cpu / ppc4xx / spr.c
index cb18b6436d89c346fb7bd0192e0f24c971175151..3f5e96593a47a75afd95e13ae21dd19c325337e7 100644 (file)
@@ -156,8 +156,7 @@ static struct {
        {0x3f3, "DBDR",         0x00000000,     0x00000000},
 };
 
-static int spr_test_list_size =
-               sizeof (spr_test_list) / sizeof (spr_test_list[0]);
+static int spr_test_list_size = ARRAY_SIZE(spr_test_list);
 
 int spr_post_test (int flags)
 {