diff options
| author | Arnd Bergmann <[email protected]> | 2018-01-02 10:38:54 +0000 |
|---|---|---|
| committer | Jarkko Sakkinen <[email protected]> | 2018-01-08 10:58:54 +0000 |
| commit | 68021bf4734d15c9a9ed1c1072b9ebcfda3e39cc (patch) | |
| tree | 3fa626d8a7fddc9eba60dcd8c77fbf8a8ab656cd | |
| parent | tpm: remove unused data fields from I2C and OF device ID tables (diff) | |
| download | kernel-68021bf4734d15c9a9ed1c1072b9ebcfda3e39cc.tar.gz kernel-68021bf4734d15c9a9ed1c1072b9ebcfda3e39cc.zip | |
tpm: remove unused variables
The CLKRUN fix caused a few harmless compile-time warnings:
drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_pnp_remove':
drivers/char/tpm/tpm_tis.c:274:23: error: unused variable 'priv' [-Werror=unused-variable]
drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_plat_remove':
drivers/char/tpm/tpm_tis.c:324:23: error: unused variable 'priv' [-Werror=unused-variable]
This removes the variables that have now become unused.
Fixes: 6d0866cbc2d3 ("tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Reviewed-by: James Morris <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
| -rw-r--r-- | drivers/char/tpm/tpm_tis.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index 4b73e28458e3..f08949a5f678 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -256,7 +256,6 @@ MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl); static void tpm_tis_pnp_remove(struct pnp_dev *dev) { struct tpm_chip *chip = pnp_get_drvdata(dev); - struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev); tpm_chip_unregister(chip); tpm_tis_remove(chip); @@ -306,7 +305,6 @@ static int tpm_tis_plat_probe(struct platform_device *pdev) static int tpm_tis_plat_remove(struct platform_device *pdev) { struct tpm_chip *chip = dev_get_drvdata(&pdev->dev); - struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev); tpm_chip_unregister(chip); tpm_tis_remove(chip); |
