mb/prodrive/hermes: Skip NULL check after setting up struct
By calling get_board_settings() when board_cfg is initialized, board_cfg is guaranteed not to be NULL, so don't check to see if it's NULL. Found-by: Coverity Scan #1513079 Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I61105be9ed71ff30efdda66d2cbfcaf54d70053f Reviewed-on: https://review.coreboot.org/c/coreboot/+/78618 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
e6f19240de
commit
4bae323746
|
@ -83,7 +83,7 @@ void mainboard_memory_init_params(FSPM_UPD *memupd)
|
||||||
cannonlake_memcfg_init(&memupd->FspmConfig, &baseboard_mem_cfg);
|
cannonlake_memcfg_init(&memupd->FspmConfig, &baseboard_mem_cfg);
|
||||||
|
|
||||||
/* Tell FSP-M about the desired primary video adapter so that GGC is set up properly */
|
/* Tell FSP-M about the desired primary video adapter so that GGC is set up properly */
|
||||||
if (board_cfg && board_cfg->primary_video == PRIMARY_VIDEO_INTEL)
|
if (board_cfg->primary_video == PRIMARY_VIDEO_INTEL)
|
||||||
memupd->FspmConfig.PrimaryDisplay = 0; /* iGPU is primary */
|
memupd->FspmConfig.PrimaryDisplay = 0; /* iGPU is primary */
|
||||||
|
|
||||||
/* Overwrite memupd */
|
/* Overwrite memupd */
|
||||||
|
|
Loading…
Reference in New Issue