nb/intel/snb/raminit_mrc.c: Remove set but unused variable

Change-Id: I1cf656b404b0e880c061b273ef259ca40a6d499a
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63071
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Arthur Heymans 2022-03-24 01:18:02 +01:00
parent 990ef56d1b
commit 55f116ac0a
1 changed files with 1 additions and 2 deletions

View File

@ -394,7 +394,7 @@ void perform_raminit(int s3resume)
static void setup_sdram_meminfo(struct pei_data *pei_data) static void setup_sdram_meminfo(struct pei_data *pei_data)
{ {
u32 addr_decoder_common, addr_decode_ch[2]; u32 addr_decode_ch[2];
struct memory_info *mem_info; struct memory_info *mem_info;
struct dimm_info *dimm; struct dimm_info *dimm;
int dimm_size; int dimm_size;
@ -404,7 +404,6 @@ static void setup_sdram_meminfo(struct pei_data *pei_data)
mem_info = cbmem_add(CBMEM_ID_MEMINFO, sizeof(struct memory_info)); mem_info = cbmem_add(CBMEM_ID_MEMINFO, sizeof(struct memory_info));
memset(mem_info, 0, sizeof(struct memory_info)); memset(mem_info, 0, sizeof(struct memory_info));
addr_decoder_common = mchbar_read32(MAD_CHNL);
addr_decode_ch[0] = mchbar_read32(MAD_DIMM_CH0); addr_decode_ch[0] = mchbar_read32(MAD_DIMM_CH0);
addr_decode_ch[1] = mchbar_read32(MAD_DIMM_CH1); addr_decode_ch[1] = mchbar_read32(MAD_DIMM_CH1);