X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=post%2Flib_powerpc%2Fstore.c;h=441389cf4f1a0570458c01de9bc0bfd1e1180f9b;hb=04bbe6999048f74af00305cacae14a2d7faf2063;hp=1956f6baa3b0df549d22cfaf17a918d7c4818335;hpb=b919a3f2981109c9f2aaafe9c692dbb99f1c6366;p=u-boot diff --git a/post/lib_powerpc/store.c b/post/lib_powerpc/store.c index 1956f6baa3..441389cf4f 100644 --- a/post/lib_powerpc/store.c +++ b/post/lib_powerpc/store.c @@ -156,8 +156,7 @@ static struct cpu_post_store_s 0xff }, }; -static unsigned int cpu_post_store_size = - sizeof (cpu_post_store_table) / sizeof (struct cpu_post_store_s); +static unsigned int cpu_post_store_size = ARRAY_SIZE(cpu_post_store_table); int cpu_post_test_store (void) {