]> asedeno.scripts.mit.edu Git - linux.git/commit
ima: Simplify ima_eventsig_init()
authorThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Wed, 14 Mar 2018 20:20:18 +0000 (17:20 -0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Sun, 25 Mar 2018 11:26:29 +0000 (07:26 -0400)
commit1775cb87b063cd60a5021c38412f6024f93cc376
tree1b9c4845a2cecb6c4dad6cdacb3b32b1f6ba347c
parent11c60f23ed1367298207efb3bbf985203a95f480
ima: Simplify ima_eventsig_init()

The "goto out" statement doesn't have any purpose since there's no cleanup
to be done when returning early, so remove it. This also makes the rc
variable unnecessary so remove it as well.

Also, the xattr_len and fmt variables are redundant so remove them as well.

Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_template_lib.c