Messages in this thread | | | Subject | Re: [PATCH] ima: remove redundant initialization of pointer 'file'. | From | Mimi Zohar <> | Date | Tue, 05 Apr 2022 08:43:24 -0400 |
| |
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@gmail.com>
thanks,
Mimi
| |