summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-04-12 13:37:02 -0700
committerLeroy P Leahy <leroy.p.leahy@intel.com>2016-04-22 17:44:41 +0200
commit50a8c8c95d0f7627dcdb73d3aea6c2abfdb65316 (patch)
treed9c576a36a42a608d157a699fd808893801aef70 /src/soc
parent8b9c807d724a4d211306bc84cff0b1290fcd1891 (diff)
downloadcoreboot-50a8c8c95d0f7627dcdb73d3aea6c2abfdb65316.tar.xz
soc/intel/quark: Fix uninitialized variable d_variant
Initialize the d_variant variable. Found-by: CID 1353356 Uninitialized variable TEST=Build and run on Galileo Gen2 Change-Id: I26fba4e77f91d53b6ff9028669aa0186d3174639 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/14338 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/quark/romstage/report_platform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/intel/quark/romstage/report_platform.c b/src/soc/intel/quark/romstage/report_platform.c
index 7ede746e1b..5ed8a5f9cb 100644
--- a/src/soc/intel/quark/romstage/report_platform.c
+++ b/src/soc/intel/quark/romstage/report_platform.c
@@ -86,6 +86,7 @@ static void report_cpu_info(void)
& B_ROM_FUSE_IN_SECURE_SKU));
/* TODO: Determine if this is a D variant */
+ d_variant = 0;
if (ecc_enabled && secure_boot)
d_variant = 0; /* or 1 */