Skip to content

Commit cf792e9

Browse files
committed
tpm: Remove unused tpm_buf_tag()
The helper function has no call sites. Thus, remove it. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Tested-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
1 parent 8516b23 commit cf792e9

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

include/linux/tpm.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,6 @@ static inline u32 tpm_buf_length(struct tpm_buf *buf)
358358
return be32_to_cpu(head->length);
359359
}
360360

361-
static inline u16 tpm_buf_tag(struct tpm_buf *buf)
362-
{
363-
struct tpm_header *head = (struct tpm_header *)buf->data;
364-
365-
return be16_to_cpu(head->tag);
366-
}
367-
368361
static inline void tpm_buf_append(struct tpm_buf *buf,
369362
const unsigned char *new_data,
370363
unsigned int new_len)

0 commit comments

Comments
 (0)