HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33270
Change subject: src/device/dram/ddr3.c: Fix 'if' condition identical branches ......................................................................
src/device/dram/ddr3.c: Fix 'if' condition identical branches
When using -Werror=duplicated-branches, the compiler complain that "if (capacity_shift < 0x02)" has identical branches.
Change-Id: I9c553e97076c31e9db036c2865ad8788701d255b Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/device/dram/ddr3.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/33270/1
diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c index 3272dac..9fe5d92 100644 --- a/src/device/dram/ddr3.c +++ b/src/device/dram/ddr3.c @@ -182,9 +182,9 @@ ret = SPD_STATUS_INVALID_FIELD; } if (capacity_shift < 0x02) { - printram(" Capacity : %u Mb\n", 256 << capacity_shift); + printk(RAM_DEBUG, " Capacity : %u Mb\n", 256 << capacity_shift); } else { - printram(" Capacity : %u Gb\n", 1 << (capacity_shift - 2)); + printk(RAM_DEBUG, " Capacity : %u Gb\n", 1 << (capacity_shift - 2)); }
reg8 = spd[5];