[PATCH] KEYS: trusted: Remove set but not used variable 'keyhndl'
Jarkko Sakkinen
jarkko.sakkinen at linux.intel.com
Tue Oct 29 14:18:52 UTC 2019
On Tue, Oct 29, 2019 at 04:16:37PM +0200, Jarkko Sakkinen wrote:
> 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 <hulkci at huawei.com>
> > Signed-off-by: zhengbin <zhengbin13 at huawei.com>
>
> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen at linux.intel.com>
>
> I'll pick this to my tree.
Please use fixes tag next time instead of ad hoc.
Anyway, applied, thanks.
/Jarkko
More information about the Linux-security-module-archive
mailing list