From 50a8c8c95d0f7627dcdb73d3aea6c2abfdb65316 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 12 Apr 2016 13:37:02 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/14338 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/intel/quark/romstage/report_platform.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 */ -- cgit v1.2.3