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:
Elyes HAOUAS 2022-01-07 19:05:11 +01:00 committed by Felix Singer
parent 55be012ffd
commit c2f1202151
1 changed files with 7 additions and 8 deletions

View File

@ -489,15 +489,14 @@ bool intel_txt_prepare_txt_env(void)
failure = true; 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; return true;
} else {
printk(BIOS_DEBUG, "TEE-TXT: Machine Check Register: "); printk(BIOS_DEBUG, "TEE-TXT: Machine Check Register: ");
if (txt_feature_flags & GETSEC_PARAMS_TXT_EXT_MACHINE_CHECK) if (txt_feature_flags & GETSEC_PARAMS_TXT_EXT_MACHINE_CHECK)
printk(BIOS_DEBUG, "preserved\n"); printk(BIOS_DEBUG, "preserved\n");
else else
printk(BIOS_DEBUG, "must be clear\n"); printk(BIOS_DEBUG, "must be clear\n");
}
if (!(txt_feature_flags & GETSEC_PARAMS_TXT_EXT_MACHINE_CHECK)) { if (!(txt_feature_flags & GETSEC_PARAMS_TXT_EXT_MACHINE_CHECK)) {
/* /*