selinux: small cleanups in selinux_audit_rule_init()
authorPaul Moore <paul@paul-moore.com>
Fri, 5 May 2023 22:49:44 +0000 (18:49 -0400)
committerPaul Moore <paul@paul-moore.com>
Mon, 8 May 2023 20:53:41 +0000 (16:53 -0400)
commitc52df19e3759055cf07d1c0030c46ea958163aa9
tree4cc27a085c30c74306050af7f320948cb038804d
parent4158cb600006371f4359f6ef23a0f1a7255e8843
selinux: small cleanups in selinux_audit_rule_init()

A few small tweaks to selinux_audit_rule_init():

- Adjust how we use the @rc variable so we are not doing any extra
  work in the common/success case.

- Related to the above, rework the 'out' jump label so that the
  success and error paths are different, simplifying both.

- Cleanup some of the vertical whitespace while we are making the
  other changes.

Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/services.c