]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tpm: remove unused variables
authorArnd Bergmann <arnd@arndb.de>
Tue, 2 Jan 2018 10:38:54 +0000 (11:38 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 15 Mar 2018 21:29:12 +0000 (18:29 -0300)
commite1fae69252c8d844ddde01f4a6c3acaac3f146b2
treeb82cc45d2125cf859b7069289c19481da0b52e94
parented4b1183b6f6bce0b70ca91371bb1541f853b991
tpm: remove unused variables

BugLink: http://bugs.launchpad.net/bugs/1756100
commit 68021bf4734d15c9a9ed1c1072b9ebcfda3e39cc upstream.

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 <arnd@arndb.de>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: James Morris <jmorris@namei.org>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/char/tpm/tpm_tis.c