From 8434d92c305b2c04a61e42cbb2882a829cfb4f67 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Wed, 6 Jan 2021 04:02:04 +0000 Subject: mb/clevo/kbl-u: Clean up code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I98d806ebf126522689b2c101b75add733825fcf1 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/49133 Tested-by: build bot (Jenkins) Reviewed-by: Michael Niewöhner --- src/mainboard/clevo/kbl-u/romstage.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3