diff options
Diffstat (limited to 'drivers/char/tpm/tpm2-cmd.c')
-rw-r--r-- | drivers/char/tpm/tpm2-cmd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/tpm/tpm2-cmd.c index d103545e4055..ba9acae83bff 100644 --- a/drivers/char/tpm/tpm2-cmd.c +++ b/drivers/char/tpm/tpm2-cmd.c | |||
@@ -840,7 +840,7 @@ struct tpm2_pcr_selection { | |||
840 | u8 pcr_select[3]; | 840 | u8 pcr_select[3]; |
841 | } __packed; | 841 | } __packed; |
842 | 842 | ||
843 | static ssize_t tpm2_get_pcr_allocation(struct tpm_chip *chip) | 843 | ssize_t tpm2_get_pcr_allocation(struct tpm_chip *chip) |
844 | { | 844 | { |
845 | struct tpm2_pcr_selection pcr_selection; | 845 | struct tpm2_pcr_selection pcr_selection; |
846 | struct tpm_buf buf; | 846 | struct tpm_buf buf; |
@@ -1040,10 +1040,6 @@ int tpm2_auto_startup(struct tpm_chip *chip) | |||
1040 | goto out; | 1040 | goto out; |
1041 | } | 1041 | } |
1042 | 1042 | ||
1043 | rc = tpm2_get_pcr_allocation(chip); | ||
1044 | if (rc) | ||
1045 | goto out; | ||
1046 | |||
1047 | rc = tpm2_get_cc_attrs_tbl(chip); | 1043 | rc = tpm2_get_cc_attrs_tbl(chip); |
1048 | 1044 | ||
1049 | out: | 1045 | out: |