aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/nyan_big/sdram_configs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/nyan_big/sdram_configs.c')
-rw-r--r--src/mainboard/google/nyan_big/sdram_configs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/nyan_big/sdram_configs.c b/src/mainboard/google/nyan_big/sdram_configs.c
index 7193d7b4c4..15ed489070 100644
--- a/src/mainboard/google/nyan_big/sdram_configs.c
+++ b/src/mainboard/google/nyan_big/sdram_configs.c
@@ -33,7 +33,7 @@ const struct sdram_params *get_sdram_config()
*/
printk(BIOS_SPEW, "%s: RAMCODE=%d\n", __func__, ramcode);
- if (ramcode >= sizeof(sdram_configs) / sizeof(sdram_configs[0]) ||
+ if (ramcode >= ARRAY_SIZE(sdram_configs) ||
sdram_configs[ramcode].MemoryType == NvBootMemoryType_Unused) {
die("Invalid RAMCODE.");
}