summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/ddr_spd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ddr_spd.c b/common/ddr_spd.c
index 0ba5eaceae..23df3e7119 100644
--- a/common/ddr_spd.c
+++ b/common/ddr_spd.c
@@ -325,7 +325,7 @@ void ddr_spd_print(uint8_t *record)
printf("Error module type\n");
printf("%-48s ", "DRAM Package ");
- if ((s->mod_ranks & 0x10) == 1)
+ if ((s->mod_ranks & 0x10) != 0)
printf("Stack\n");
else
printf("Planar\n");