cpu/x86: Remove unnecessary guard
The is_smm_enabled is not necessary because it is done previously in this code path. Signed-off-by: Eugene D. Myers <edmyers@tycho.nsa.gov> Change-Id: I20d50acbea891cb56ad49edc128df25d21c5f1ca Reviewed-on: https://review.coreboot.org/c/coreboot/+/38820 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
970ed2ad29
commit
53e92360f5
1 changed files with 7 additions and 12 deletions
|
@ -747,7 +747,6 @@ static void asmlinkage smm_do_relocation(void *arg)
|
|||
mp_state.ops.relocation_handler(cpu, curr_smbase, perm_smbase);
|
||||
|
||||
if (CONFIG(STM)) {
|
||||
if (is_smm_enabled()) {
|
||||
uintptr_t mseg;
|
||||
|
||||
mseg = mp_state.perm_smbase +
|
||||
|
@ -757,10 +756,6 @@ static void asmlinkage smm_do_relocation(void *arg)
|
|||
perm_smbase,
|
||||
mp_state.perm_smbase,
|
||||
runtime->start32_offset);
|
||||
} else {
|
||||
printk(BIOS_DEBUG,
|
||||
"STM not loaded because SMM is not enabled!\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue