aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/crb/tpm.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-08-19 21:51:08 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2020-09-21 15:51:52 +0000
commitd161a2fafd14700b133b1deca7b8a9a5ca1c5283 (patch)
treecf091c2582e17442eb5096322b3c0f328cdbffa0 /src/drivers/crb/tpm.c
parent490546f191cf2aa1aceec97b7d0503f4fb4408f4 (diff)
src/drivers: Drop unneeded empty lines
Change-Id: I202e5d285612b9bf237b588ea3c006187623fdc3 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44609 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
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;