mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-19 00:47:38 +00:00
tpm/tpm_tis: remove unused itpm variable
Fixes the warning:
drivers/char/tpm/tpm_tis_core.c:443:7: warning: variable ‘itpm’ set but
not used [-Wunused-but-set-variable]
bool itpm;
^~~~
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
This commit is contained in:
parent
f39a9e97d7
commit
56af322156
@ -440,7 +440,6 @@ static int probe_itpm(struct tpm_chip *chip)
|
|||||||
0x00, 0x00, 0x00, 0xf1
|
0x00, 0x00, 0x00, 0xf1
|
||||||
};
|
};
|
||||||
size_t len = sizeof(cmd_getticks);
|
size_t len = sizeof(cmd_getticks);
|
||||||
bool itpm;
|
|
||||||
u16 vendor;
|
u16 vendor;
|
||||||
|
|
||||||
rc = tpm_tis_read16(priv, TPM_DID_VID(0), &vendor);
|
rc = tpm_tis_read16(priv, TPM_DID_VID(0), &vendor);
|
||||||
@ -451,8 +450,6 @@ static int probe_itpm(struct tpm_chip *chip)
|
|||||||
if (vendor != TPM_VID_INTEL)
|
if (vendor != TPM_VID_INTEL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
itpm = false;
|
|
||||||
|
|
||||||
rc = tpm_tis_send_data(chip, cmd_getticks, len);
|
rc = tpm_tis_send_data(chip, cmd_getticks, len);
|
||||||
if (rc == 0)
|
if (rc == 0)
|
||||||
goto out;
|
goto out;
|
||||||
@ -460,8 +457,6 @@ static int probe_itpm(struct tpm_chip *chip)
|
|||||||
tpm_tis_ready(chip);
|
tpm_tis_ready(chip);
|
||||||
release_locality(chip, priv->locality, 0);
|
release_locality(chip, priv->locality, 0);
|
||||||
|
|
||||||
itpm = true;
|
|
||||||
|
|
||||||
rc = tpm_tis_send_data(chip, cmd_getticks, len);
|
rc = tpm_tis_send_data(chip, cmd_getticks, len);
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
dev_info(&chip->dev, "Detected an iTPM.\n");
|
dev_info(&chip->dev, "Detected an iTPM.\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user