From 6091e6cbf8abc7e360813a2c9eab717770110c40 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Fri, 13 Nov 2020 12:36:25 +0100 Subject: mb/supermicro/x11-lga1151-series: Initialize mem_cfg in one line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I50390f66d9570eb0fd703e3ad8a2735125d76b61 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/47566 Reviewed-by: Michael Niewöhner Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/mainboard/supermicro/x11-lga1151-series/romstage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mainboard/supermicro/x11-lga1151-series/romstage.c') diff --git a/src/mainboard/supermicro/x11-lga1151-series/romstage.c b/src/mainboard/supermicro/x11-lga1151-series/romstage.c index fd1c715eb2..67636575ce 100644 --- a/src/mainboard/supermicro/x11-lga1151-series/romstage.c +++ b/src/mainboard/supermicro/x11-lga1151-series/romstage.c @@ -6,8 +6,7 @@ void mainboard_memory_init_params(FSPM_UPD *mupd) { - FSP_M_CONFIG *mem_cfg; - mem_cfg = &mupd->FspmConfig; + FSP_M_CONFIG *mem_cfg = &mupd->FspmConfig; struct spd_block blk = { .addr_map = { 0x50, 0x51, 0x52, 0x53, }, -- cgit v1.2.3