nb/intel/sandybridge: Fix unitialized variable issue
commit 1e9601c5ef
("nb/intel/sandybridge: Standardize MRC vs. native
SPD mapping API") introduced an uninitialized variable issue.
Change-Id: I41b081dc4c961acc04423067e29e0eabe5f17539
Found-by: Coverity CID 1524317
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79093
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
This commit is contained in:
parent
74905117bd
commit
caa0c0e71a
|
@ -315,7 +315,7 @@ static void devicetree_fill_pei_data(struct pei_data *pei_data)
|
||||||
static void spd_fill_pei_data(struct pei_data *pei_data)
|
static void spd_fill_pei_data(struct pei_data *pei_data)
|
||||||
{
|
{
|
||||||
struct spd_info spdi = {0};
|
struct spd_info spdi = {0};
|
||||||
unsigned int i, have_memory_down;
|
unsigned int i, have_memory_down = 0;
|
||||||
|
|
||||||
mb_get_spd_map(&spdi);
|
mb_get_spd_map(&spdi);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue