[PATCH] ima: remove redundant initialization of pointer 'file'.

Mimi Zohar zohar at linux.ibm.com
Tue Apr 5 12:43:24 UTC 2022


On Tue, 2022-03-01 at 12:07 +0000, Colin Ian King wrote:
> The pointer 'file' is being initialized with a value that is never read,
> it is being re-assigned the same value later on closer to where it is
> being first used. The initialization is redundant and can be removed.
> 
> Cleans up clang scan build warning:
> security/integrity/ima/ima_main.c:434:15: warning: Value stored to 'file'
> during its initialization is never read [deadcode.DeadStores]
> 
> Signed-off-by: Colin Ian King <colin.i.king at gmail.com>

thanks,

Mimi



More information about the Linux-security-module-archive mailing list