PPC: fix "Warning: FOO uses hard float, BAR uses soft float".
[oweals/u-boot.git] / post / lib_powerpc / store.c
index 1956f6baa3b0df549d22cfaf17a918d7c4818335..441389cf4f1a0570458c01de9bc0bfd1e1180f9b 100644 (file)
@@ -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)
 {