]> git.baikalelectronics.ru Git - kernel.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)
commita7a93c7777522f7d6bd5fd54d0af69d52199bc8a
tree1b9c4845a2cecb6c4dad6cdacb3b32b1f6ba347c
parent4477db32b1d2050e48cb620337245137967ee06f
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