diff options
author | Felix Singer <felixsinger@posteo.net> | 2021-01-06 04:02:04 +0000 |
---|---|---|
committer | Michael Niewöhner <foss@mniewoehner.de> | 2021-04-19 10:10:30 +0000 |
commit | 8434d92c305b2c04a61e42cbb2882a829cfb4f67 (patch) | |
tree | 68fa9ab87d3b488287089e2411b44820fae8608a | |
parent | cbfcb2a6bb14ca642db857d39c22a8550b917a25 (diff) |
mb/clevo/kbl-u: Clean up code
Change-Id: I98d806ebf126522689b2c101b75add733825fcf1
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49133
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
-rw-r--r-- | src/mainboard/clevo/kbl-u/romstage.c | 5 |
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); |