summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-13 12:36:25 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-11-16 11:06:03 +0000
commit6091e6cbf8abc7e360813a2c9eab717770110c40 (patch)
treecc788a6a8b8c0c9d8b37b8034dced6c488498881 /src/mainboard
parentc1870394a742a833a11ee30ba781dfaaac9d25dc (diff)
mb/supermicro/x11-lga1151-series: Initialize mem_cfg in one line
Change-Id: I50390f66d9570eb0fd703e3ad8a2735125d76b61 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47566 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/supermicro/x11-lga1151-series/romstage.c3
1 files changed, 1 insertions, 2 deletions
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, },