From 0a89d5237edcec3015363e9a7a3bd8b014fec500 Mon Sep 17 00:00:00 2001 From: Sergii Dmytruk Date: Sat, 29 Oct 2022 16:57:07 +0300 Subject: security/tpm: remove tis_close() This function was never called from outside of drivers and src/drivers/pc80/tpm/tis.c was the only one doing it in a questionable way. tpm_vendor_cleanup() also isn't needed as one of tis_close() functions was its only caller. Change-Id: I9df76adfc21fca9fa1d1af7c40635ec0684ceb0f Ticket: https://ticket.coreboot.org/issues/433 Signed-off-by: Sergii Dmytruk Reviewed-on: https://review.coreboot.org/c/coreboot/+/68989 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/security/tpm/tis.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/security') diff --git a/src/security/tpm/tis.h b/src/security/tpm/tis.h index 8868e1a0fe..04a137f12e 100644 --- a/src/security/tpm/tis.h +++ b/src/security/tpm/tis.h @@ -44,22 +44,12 @@ int tis_init(void); /* * tis_open() * - * Requests access to locality 0 for the caller. After all commands have been - * completed the caller is supposed to call tis_close(). + * Requests access to locality 0 for the caller. * * Returns 0 on success, -1 on failure. */ int tis_open(void); -/* - * tis_close() - * - * terminate the current session with the TPM by releasing the locked - * locality. Returns 0 on success of -1 on failure (in case lock - * removal did not succeed). - */ -int tis_close(void); - /* * tis_sendrecv() * -- cgit v1.2.1