minor style change: use ARRAY_SIZE

Change-Id: Ia5243c342535963a3800849cd5a7d183a510d2d6
This commit is contained in:
King Kévin committed 2018-07-04 17:55:20 +02:00
1 parent 1200a5228f
commit 86f48fc962
1 file changed
+1 -2
+1 -2
View File
@@ -169,8 +169,7 @@ extern int main(void)
}
TRACE_INFO("calling configure of all configurations...\n\r");
for (i = 1; i < sizeof(config_func_ptrs) / sizeof(config_func_ptrs[0]);
++i) {
for (i = 1; i < ARRAY_SIZE(config_func_ptrs); i++) {
if (config_func_ptrs[i].configure)
config_func_ptrs[i].configure();
}