From 9b7f9b97686bd5594518828249a5e0e2e6f377e7 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 7 Feb 2013 00:09:59 -0600 Subject: [PATCH] haswell: remove unused sys_info structure This structure is not used nor the variable being instantiated on the stack. Remove them. Change-Id: If3abe2dd77104eff49665dd33570b07179bf34f5 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/2753 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/northbridge/intel/haswell/raminit.c | 5 ----- src/northbridge/intel/haswell/raminit.h | 7 ------- 2 files changed, 12 deletions(-) diff --git a/src/northbridge/intel/haswell/raminit.c b/src/northbridge/intel/haswell/raminit.c index e2b085b3fd..8a38e765eb 100644 --- a/src/northbridge/intel/haswell/raminit.c +++ b/src/northbridge/intel/haswell/raminit.c @@ -147,15 +147,10 @@ static void report_memory_config(void) */ void sdram_initialize(struct pei_data *pei_data) { - struct sys_info sysinfo; unsigned long entry; printk(BIOS_DEBUG, "Starting UEFI PEI System Agent\n"); - memset(&sysinfo, 0, sizeof(sysinfo)); - - sysinfo.boot_path = pei_data->boot_mode; - /* * Do not pass MRC data in for recovery mode boot, * Always pass it in for S3 resume. diff --git a/src/northbridge/intel/haswell/raminit.h b/src/northbridge/intel/haswell/raminit.h index 958e983243..f94dea8c3a 100644 --- a/src/northbridge/intel/haswell/raminit.h +++ b/src/northbridge/intel/haswell/raminit.h @@ -22,13 +22,6 @@ #include "pei_data.h" -struct sys_info { - u8 boot_path; -#define BOOT_PATH_NORMAL 0 -#define BOOT_PATH_RESET 1 -#define BOOT_PATH_RESUME 2 -} __attribute__ ((packed)); - void sdram_initialize(struct pei_data *pei_data); unsigned long get_top_of_ram(void); int fixup_haswell_errata(void);