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>
This commit is contained in:
committed by
Michael Niewöhner
parent
490546f191
commit
d161a2fafd
@@ -30,7 +30,6 @@ static const char *tis_get_dev_name(struct tpm2_info *info)
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
|
||||
int tis_open(void)
|
||||
{
|
||||
if (tpm_is_open) {
|
||||
@@ -79,7 +78,6 @@ int tis_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int tis_sendrecv(const uint8_t *sendbuf, size_t sbuf_size, uint8_t *recvbuf, size_t *rbuf_len)
|
||||
{
|
||||
int len = tpm2_process_command(sendbuf, sbuf_size, recvbuf, *rbuf_len);
|
||||
|
@@ -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;
|
||||
|
@@ -39,7 +39,6 @@
|
||||
#define CRB_INTF_REG_INTF_SEL (1<<17)
|
||||
#define CRB_INTF_REG_INTF_LOCK (1<<19)
|
||||
|
||||
|
||||
/*REQUEST Register related */
|
||||
#define CRB_REG_REQUEST_CMD_RDY 0x01
|
||||
#define CRB_REG_REQUEST_GO_IDLE 0x02
|
||||
@@ -58,7 +57,6 @@ struct tpm2_info {
|
||||
uint16_t revision;
|
||||
};
|
||||
|
||||
|
||||
int tpm2_init(void);
|
||||
void tpm2_get_info(struct tpm2_info *tpm2_info);
|
||||
size_t tpm2_process_command(const void *tpm2_command, size_t command_size,
|
||||
|
Reference in New Issue
Block a user