summaryrefslogtreecommitdiff
path: root/src/security/tpm
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-08-26 09:22:45 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2020-09-21 16:26:17 +0000
commitf91bcb310bae7478104304bd18c75cdd73a1e229 (patch)
tree634e3dc37b7abd793dc6ee203f37d64674768655 /src/security/tpm
parent4b7f3151a860b996bc5d42d3513c302d67f08f47 (diff)
src/security: Drop unneeded empty lines
Change-Id: Icb6057ac73fcc038981ef95a648420ac00b3c106 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44808 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/security/tpm')
-rw-r--r--src/security/tpm/tspi.h1
-rw-r--r--src/security/tpm/tspi/crtm.c1
-rw-r--r--src/security/tpm/tss/tcg-1.2/tss.c2
-rw-r--r--src/security/tpm/tss/tcg-1.2/tss_internal.h1
-rw-r--r--src/security/tpm/tss/vendor/cr50/cr50.h2
5 files changed, 0 insertions, 7 deletions
diff --git a/src/security/tpm/tspi.h b/src/security/tpm/tspi.h
index a776a4db0a..e040d80611 100644
--- a/src/security/tpm/tspi.h
+++ b/src/security/tpm/tspi.h
@@ -41,7 +41,6 @@ void tcpa_log_add_table_entry(const char *name, const uint32_t pcr,
*/
void tcpa_log_dump(void *unused);
-
/**
* Ask vboot for a digest and extend a TPM PCR with it.
* @param pcr sets the pcr index
diff --git a/src/security/tpm/tspi/crtm.c b/src/security/tpm/tspi/crtm.c
index f5c788c016..d9c62e1e14 100644
--- a/src/security/tpm/tspi/crtm.c
+++ b/src/security/tpm/tspi/crtm.c
@@ -165,7 +165,6 @@ int tspi_measure_cache_to_pcr(void)
hash_alg = VB2_HASH_SHA256;
}
-
printk(BIOS_DEBUG, "TPM: Write digests cached in TCPA log to PCR\n");
for (i = 0; i < tclt->num_entries; i++) {
struct tcpa_entry *tce = &tclt->entries[i];
diff --git a/src/security/tpm/tss/tcg-1.2/tss.c b/src/security/tpm/tss/tcg-1.2/tss.c
index 30cd1cc3e9..a3d0235365 100644
--- a/src/security/tpm/tss/tcg-1.2/tss.c
+++ b/src/security/tpm/tss/tcg-1.2/tss.c
@@ -99,7 +99,6 @@ static uint32_t tlcl_send_receive_no_retry(const uint8_t *request,
return result;
}
-
/* Sends a TPM command and gets a response. Returns 0 if success or the TPM
* error code if error. Waits for the self test to complete if needed. */
uint32_t tlcl_send_receive(const uint8_t *request, uint8_t *response,
@@ -246,7 +245,6 @@ uint32_t tlcl_read(uint32_t index, void *data, uint32_t length)
return result;
}
-
uint32_t tlcl_assert_physical_presence(void)
{
VBDEBUG("TPM: Asserting physical presence\n");
diff --git a/src/security/tpm/tss/tcg-1.2/tss_internal.h b/src/security/tpm/tss/tcg-1.2/tss_internal.h
index 1f49f041f4..c5a5aaa187 100644
--- a/src/security/tpm/tss/tcg-1.2/tss_internal.h
+++ b/src/security/tpm/tss/tcg-1.2/tss_internal.h
@@ -15,7 +15,6 @@
#define kEncAuthLength 20
#define kPcrDigestLength 20
-
/*
* Conversion functions. to_tpm_TYPE puts a value of type TYPE into a TPM
* command buffer. from_tpm_TYPE gets a value of type TYPE from a TPM command
diff --git a/src/security/tpm/tss/vendor/cr50/cr50.h b/src/security/tpm/tss/vendor/cr50/cr50.h
index dadeddfb68..7730eccd29 100644
--- a/src/security/tpm/tss/vendor/cr50/cr50.h
+++ b/src/security/tpm/tss/vendor/cr50/cr50.h
@@ -40,7 +40,6 @@ enum cr50_tpm_mode {
TPM_MODE_INVALID,
};
-
/**
* CR50 specific tpm command to enable nvmem commits before internal timeout
* expires.
@@ -96,5 +95,4 @@ uint32_t tlcl_cr50_get_boot_mode(uint8_t *boot_mode);
*/
uint32_t tlcl_cr50_immediate_reset(uint16_t timeout_ms);
-
#endif /* CR50_TSS_STRUCTURES_H_ */