X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=post%2Flib_powerpc%2Frlwnm.c;h=764fe0c5df9cbbb9b88a58a860a1d8adf966b860;hb=04bbe6999048f74af00305cacae14a2d7faf2063;hp=60bcb6d26c072c0ddc8f037c18c3ff49ecae0706;hpb=a47a12becf66f02a56da91c161e2edb625e9f20c;p=u-boot diff --git a/post/lib_powerpc/rlwnm.c b/post/lib_powerpc/rlwnm.c index 60bcb6d26c..764fe0c5df 100644 --- a/post/lib_powerpc/rlwnm.c +++ b/post/lib_powerpc/rlwnm.c @@ -60,8 +60,7 @@ static struct cpu_post_rlwnm_s 0x0000ff00 }, }; -static unsigned int cpu_post_rlwnm_size = - sizeof (cpu_post_rlwnm_table) / sizeof (struct cpu_post_rlwnm_s); +static unsigned int cpu_post_rlwnm_size = ARRAY_SIZE(cpu_post_rlwnm_table); int cpu_post_test_rlwnm (void) {