From: Jarkko Sakkinen Date: Mon, 29 Apr 2024 20:27:50 +0000 (-0400) Subject: tpm: Remove unused tpm_buf_tag() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cf792e903affdf585f20fea41ea4f9b4eac124ab;p=linux.git tpm: Remove unused tpm_buf_tag() The helper function has no call sites. Thus, remove it. Signed-off-by: James Bottomley Reviewed-by: Stefan Berger Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- diff --git a/include/linux/tpm.h b/include/linux/tpm.h index 4ee9d13749adc..6588ca87cf933 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)