security/intel/txt/common.c: Remove unuseful "else" after "return"
"else" is unuseful after a "break" or "return". Change-Id: I7273b9af46a2310c9981ffd20afe2c8c7e061479 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60910 Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
parent
55be012ffd
commit
c2f1202151
|
@ -489,15 +489,14 @@ bool intel_txt_prepare_txt_env(void)
|
|||
failure = true;
|
||||
}
|
||||
|
||||
if (!getsec_parameter(NULL, NULL, NULL, NULL, NULL, &txt_feature_flags)) {
|
||||
if (!getsec_parameter(NULL, NULL, NULL, NULL, NULL, &txt_feature_flags))
|
||||
return true;
|
||||
} else {
|
||||
|
||||
printk(BIOS_DEBUG, "TEE-TXT: Machine Check Register: ");
|
||||
if (txt_feature_flags & GETSEC_PARAMS_TXT_EXT_MACHINE_CHECK)
|
||||
printk(BIOS_DEBUG, "preserved\n");
|
||||
else
|
||||
printk(BIOS_DEBUG, "must be clear\n");
|
||||
}
|
||||
|
||||
if (!(txt_feature_flags & GETSEC_PARAMS_TXT_EXT_MACHINE_CHECK)) {
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue