]> git.sur5r.net Git - u-boot/blobdiff - post/cpu/mpc8xx/spr.c
post: use ARRAY_SIZE
[u-boot] / post / cpu / mpc8xx / spr.c
index db84dbe50437198686a6468f3c7de51c7d176147..4c1e2afbf63898ce56e2c53993c8c5dd7f8a94ba 100644 (file)
@@ -108,8 +108,7 @@ static struct
        {826,   "MD_DBRAM1",    0x00000000,     0x00000000},
 };
 
-static int spr_test_list_size =
-               sizeof (spr_test_list) / sizeof (spr_test_list[0]);
+static int spr_test_list_size = ARRAY_SIZE(spr_test_list);
 
 int spr_post_test (int flags)
 {