]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - post/lib_powerpc/rlwnm.c
post: use ARRAY_SIZE
[people/ms/u-boot.git] / post / lib_powerpc / rlwnm.c
index 60bcb6d26c072c0ddc8f037c18c3ff49ecae0706..764fe0c5df9cbbb9b88a58a860a1d8adf966b860 100644 (file)
@@ -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)
 {