Skip to content

Commit

Permalink
tpm: Remove unused tpm_buf_tag()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jarkkojs committed May 9, 2024
1 parent 8516b23 commit cf792e9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/linux/tpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cf792e9

Please sign in to comment.