]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - post/lib_powerpc/load.c
post: use ARRAY_SIZE
[people/ms/u-boot.git] / post / lib_powerpc / load.c
index 98d437318c6956c8a8c5d2ddbdc150178fcc634a..49924f2edc80a7532d1c2eebbbf654ebe9ebab28 100644 (file)
@@ -171,8 +171,7 @@ static struct cpu_post_load_s
        1
     },
 };
-static unsigned int cpu_post_load_size =
-    sizeof (cpu_post_load_table) / sizeof (struct cpu_post_load_s);
+static unsigned int cpu_post_load_size = ARRAY_SIZE(cpu_post_load_table);
 
 int cpu_post_test_load (void)
 {