ima: remove redundant initialization of pointer 'file'.
authorColin Ian King <colin.i.king@gmail.com>
Tue, 1 Mar 2022 12:07:32 +0000 (12:07 +0000)
committerMimi Zohar <zohar@linux.ibm.com>
Mon, 4 Apr 2022 20:27:44 +0000 (16:27 -0400)
commit29d1c2b47ef3b39a5bc58e060a4ee23ccf3d052e
tree2598db948ad77aafa43fdb37ab693076ca4003ae
parent3123109284176b1532874591f7c81f3837bbdc17
ima: remove redundant initialization of pointer 'file'.

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>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_main.c