The ARRAY_SIZE macro is convenient, yet mostly unused. Switch lots of
[coreboot.git] / src / mainboard / tyan / s2881 / resourcemap.c
index 22723eafadd613cd81f7e80b3bd08f76c1c57f29..cecb79079562fcb778581e5f385d29816c041fe3 100644 (file)
@@ -258,7 +258,7 @@ static void setup_s2881_resource_map(void)
        PCI_ADDR(0, 0x18, 1, 0xEC), 0x0000FC88, 0x00000000,
        };
        int max;
-       max = sizeof(register_values)/sizeof(register_values[0]);
+       max = ARRAY_SIZE(register_values);
        setup_resource_map(register_values, max);
 }