[coreboot-gerrit] Change in coreboot[master]: nb/intel/x4x/raminit: Initialise async variable

Arthur Heymans (Code Review) gerrit at coreboot.org
Wed May 17 14:09:25 CEST 2017


Arthur Heymans has uploaded a new change for review. ( https://review.coreboot.org/19736 )

Change subject: nb/intel/x4x/raminit: Initialise async variable
......................................................................

nb/intel/x4x/raminit: Initialise async variable

It could end up not initialized which causes it not to build with
clang.

Change-Id: I3be9477d836123aaa87c9bebb41c1ec34689a771
Signed-off-by: Arthur Heymans <arthur at aheymans.xyz>
---
M src/northbridge/intel/x4x/raminit_ddr2.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/19736/1

diff --git a/src/northbridge/intel/x4x/raminit_ddr2.c b/src/northbridge/intel/x4x/raminit_ddr2.c
index 35caaa6..fb3cbcb 100644
--- a/src/northbridge/intel/x4x/raminit_ddr2.c
+++ b/src/northbridge/intel/x4x/raminit_ddr2.c
@@ -714,7 +714,7 @@
 
 static void dll_ddr2(struct sysinfo *s)
 {
-	u8 i, j, r, reg8, clk, async;
+	u8 i, j, r, reg8, clk, async = 0;
 	u16 reg16 = 0;
 	u32 reg32 = 0;
 	u8 lane;

-- 
To view, visit https://review.coreboot.org/19736
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3be9477d836123aaa87c9bebb41c1ec34689a771
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Arthur Heymans <arthur at aheymans.xyz>



More information about the coreboot-gerrit mailing list