Re: [PATCH] KEYS: trusted: Remove set but not used variable 'keyhndl'
From: Jarkko Sakkinen <hidden>
Date: 2019-10-29 14:16:37
Also in:
keyrings
From: Jarkko Sakkinen <hidden>
Date: 2019-10-29 14:16:37
Also in:
keyrings
On Tue, Oct 29, 2019 at 05:33:32PM +0800, zhengbin wrote:
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]
It is introduced by commit 00aa975bd031 ("KEYS: trusted:
Create trusted keys subsystem"), but never used, so remove it.
Reported-by: Hulk Robot <redacted>
Signed-off-by: zhengbin <redacted>Reviewed-by: Jarkko Sakkinen <redacted> I'll pick this to my tree. /Jarkko