KEYS: trusted: Remove set but not used variable 'keyhndl'
authorzhengbin <zhengbin13@huawei.com>
Tue, 29 Oct 2019 09:33:32 +0000 (17:33 +0800)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 12 Nov 2019 19:45:37 +0000 (21:45 +0200)
commit0b40dbcbba923b5379bd1d601edd6d51e23fe72c
tree9ba8f8cf1a779ba1a8d82f2220292909389a93ca
parent9c8c5742b6af76a3fd93b4e56d1d981173cf9016
KEYS: trusted: Remove set but not used variable 'keyhndl'

Fixes gcc '-Wunused-but-set-variable' warning:

security/keys/trusted-keys/trusted_tpm1.c: In function tpm_unseal:
security/keys/trusted-keys/trusted_tpm1.c:588:11: warning: variable keyhndl set but not used [-Wunused-but-set-variable]

Fixes: 00aa975bd031 ("KEYS: trusted: Create trusted keys subsystem")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
security/keys/trusted-keys/trusted_tpm1.c