aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/crb/tpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/crb/tpm.c')
-rw-r--r--src/drivers/crb/tpm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/drivers/crb/tpm.c b/src/drivers/crb/tpm.c
index 575f973832..476b62b657 100644
--- a/src/drivers/crb/tpm.c
+++ b/src/drivers/crb/tpm.c
@@ -121,7 +121,6 @@ static uint8_t crb_activate_locality(void)
if (rc)
write8(CRB_REG(locality, CRB_REG_LOC_CTRL), LOC_CTRL_REQ_ACCESS);
-
rc = crb_wait_for_reg32(CRB_REG(locality, CRB_REG_LOC_STATE), 750, LOC_STATE_LOC_ASSIGN,
LOC_STATE_LOC_ASSIGN);
if (rc) {
@@ -137,7 +136,6 @@ static uint8_t crb_activate_locality(void)
return 0;
}
-
return locality;
}
@@ -176,7 +174,6 @@ static int crb_switch_to_ready(void)
int tpm2_init(void)
{
-
if (crb_probe()) {
printk(BIOS_ERR, "TPM: Probe failed.\n");
return -1;