]> 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)
commit85b51d1d729969bb531233ac316249d6177ca862
tree1b9c4845a2cecb6c4dad6cdacb3b32b1f6ba347c
parent576e7256437ac973c5760df2dafb2dacc568ddd7
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