summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/clevo/kbl-u/romstage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainboard/clevo/kbl-u/romstage.c b/src/mainboard/clevo/kbl-u/romstage.c
index 1399d33608..a39117e2f3 100644
--- a/src/mainboard/clevo/kbl-u/romstage.c
+++ b/src/mainboard/clevo/kbl-u/romstage.c
@@ -18,13 +18,12 @@ static void mainboard_fill_rcomp_strength_data(void *rcomp_strength_ptr)
void mainboard_memory_init_params(FSPM_UPD *mupd)
{
- FSP_M_CONFIG *mem_cfg;
+ FSP_M_CONFIG *mem_cfg = &mupd->FspmConfig;
+
struct spd_block blk = {
.addr_map = {0x50, 0x52},
};
- mem_cfg = &mupd->FspmConfig;
-
get_spd_smbus(&blk);
dump_spd_info(&blk);