]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/lib_powerpc/rlwinm.c
post: use ARRAY_SIZE
[karo-tx-uboot.git] / post / lib_powerpc / rlwinm.c
index 88a28c6431faab479c41bfdd4b3da00a5043c92f..a04ec52716ec8dd9c2633ad8a76645f536fb73ce 100644 (file)
@@ -59,8 +59,7 @@ static struct cpu_post_rlwinm_s
        0x0000ff00
    },
 };
-static unsigned int cpu_post_rlwinm_size =
-    sizeof (cpu_post_rlwinm_table) / sizeof (struct cpu_post_rlwinm_s);
+static unsigned int cpu_post_rlwinm_size = ARRAY_SIZE(cpu_post_rlwinm_table);
 
 int cpu_post_test_rlwinm (void)
 {