From 7a625da84fee2659e38b17d7170823538911f044 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 27 Jul 2015 23:17:14 +0200 Subject: intel/haswell: fix CHROMEOS builds for haswell Compiler complained about potentially uninitialized variable. Fixes google/bolt, google/falco, google/panther, google/slippy BRANCH=none BUG=chromium:513990 TEST=the mentioned boards build with CONFIG_CHROMEOS=y Change-Id: Ia28c833bd6ef8e1f7c820a61b41ce456eba51246 Signed-off-by: Patrick Georgi Original-Commit-Id: 4566c355cc6828ab96e8d52bfad6ccbf6be6f7ce Original-Change-Id: I4d9a685373362f8a092b325efee3f816c056c708 Original-Signed-off-by: Patrick Georgi Original-Reviewed-on: https://chromium-review.googlesource.com/288850 Original-Reviewed-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/11061 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/northbridge/intel/haswell/mrccache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/northbridge') diff --git a/src/northbridge/intel/haswell/mrccache.c b/src/northbridge/intel/haswell/mrccache.c index 481110f2fe..eb603f67d9 100644 --- a/src/northbridge/intel/haswell/mrccache.c +++ b/src/northbridge/intel/haswell/mrccache.c @@ -65,6 +65,7 @@ static int is_mrc_cache(struct mrc_data_container *mrc_cache) static u32 get_mrc_cache_region(struct mrc_data_container **mrc_region_ptr) { size_t region_size = 0; + *mrc_region_ptr = NULL; if (IS_ENABLED(CONFIG_CHROMEOS)) { struct region_device rdev; -- cgit v1.2.3