aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Sakkinen <[email protected]>2024-04-29 16:27:50 -0400
committerJarkko Sakkinen <[email protected]>2024-05-09 22:30:50 +0300
commitcf792e903affdf585f20fea41ea4f9b4eac124ab (patch)
tree9de31b91c3ba8e0e6a6b57ed5147eda9853e0e47
parent8516b23aa212a3ed6f6052418e66f22a83c7ee74 (diff)
tpm: Remove unused tpm_buf_tag()
The helper function has no call sites. Thus, remove it. Signed-off-by: James Bottomley <[email protected]> Reviewed-by: Stefan Berger <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Tested-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
-rw-r--r--include/linux/tpm.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/tpm.h b/include/linux/tpm.h
index 4ee9d13749ad..6588ca87cf93 100644
--- a/include/linux/tpm.h
+++ b/include/linux/tpm.h
@@ -358,13 +358,6 @@ static inline u32 tpm_buf_length(struct tpm_buf *buf)
return be32_to_cpu(head->length);
}
-static inline u16 tpm_buf_tag(struct tpm_buf *buf)
-{
- struct tpm_header *head = (struct tpm_header *)buf->data;
-
- return be16_to_cpu(head->tag);
-}
-
static inline void tpm_buf_append(struct tpm_buf *buf,
const unsigned char *new_data,
unsigned int new_len)