* [PATCH] ima: remove redundant code
@ 2020-04-15 7:53 Tianjia Zhang
0 siblings, 0 replies; only message in thread
From: Tianjia Zhang @ 2020-04-15 7:53 UTC (permalink / raw)
To: zohar, dmitry.kasatkin, jmorris, serge, zhangliguang, zhang.jia
Cc: linux-integrity, linux-security-module, linux-kernel, tianjia.zhang
Remove unnecessary initialization of linked list nodes.
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
---
security/integrity/ima/ima_queue.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/security/integrity/ima/ima_queue.c b/security/integrity/ima/ima_queue.c
index 8753212ddb18..edbc2d6962be 100644
--- a/security/integrity/ima/ima_queue.c
+++ b/security/integrity/ima/ima_queue.c
@@ -102,7 +102,6 @@ static int ima_add_digest_entry(struct ima_template_entry *entry,
}
qe->entry = entry;
- INIT_LIST_HEAD(&qe->later);
list_add_tail_rcu(&qe->later, &ima_measurements);
atomic_long_inc(&ima_htable.len);
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-15 7:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 7:53 [PATCH] ima: remove redundant code Tianjia Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).