summaryrefslogtreecommitdiff
path: root/src/northbridge/amd
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-05-23 05:55:04 +1000
committerMarc Jones <marc.jones@se-eng.com>2014-05-22 22:49:48 +0200
commit72ae4a3091046db366e7831b7361ea16a77672a0 (patch)
tree97fe16e2ac75cced761c538a0b5ec5e6e8228aac /src/northbridge/amd
parentf67395ee5b28f4d0a0694050089805d1b3395b63 (diff)
downloadcoreboot-72ae4a3091046db366e7831b7361ea16a77672a0.tar.xz
northbridge/amd/amdmct/mct: Initialize variables at the eol
Spotted by Clang Change-Id: Idada98b7863ef986021943cf3ddb92d2f035e3e1 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/5816 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'src/northbridge/amd')
-rw-r--r--src/northbridge/amd/amdmct/mct/mctndi_d.c2
-rw-r--r--src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/amd/amdmct/mct/mctndi_d.c b/src/northbridge/amd/amdmct/mct/mctndi_d.c
index 1404355d0d..a408d4707d 100644
--- a/src/northbridge/amd/amdmct/mct/mctndi_d.c
+++ b/src/northbridge/amd/amdmct/mct/mctndi_d.c
@@ -27,7 +27,7 @@ void InterleaveNodes_D(struct MCTStatStruc *pMCTstat,
u8 Node;
u32 Base;
u32 MemSize, MemSize0 = 0;
- u32 Dct0MemSize = 0, DctSelBase, DctSelBaseOffset;
+ u32 Dct0MemSize, DctSelBase, DctSelBaseOffset = 0;
u8 Nodes;
u8 NodesWmem;
u8 DoIntlv;
diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c
index d3b2aad2de..520a178e88 100644
--- a/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c
+++ b/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c
@@ -24,7 +24,7 @@ void InterleaveNodes_D(struct MCTStatStruc *pMCTstat,
u8 Node;
u32 Base;
u32 MemSize, MemSize0 = 0;
- u32 Dct0MemSize = 0, DctSelBase, DctSelBaseOffset;
+ u32 Dct0MemSize, DctSelBase, DctSelBaseOffset = 0;
u8 Nodes;
u8 NodesWmem;
u8 DoIntlv;