diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2018-06-14 23:20:06 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-06-28 18:44:31 +0300 |
commit | 4fa7f086993594e79f456a04656da2fcb5691209 (patch) | |
tree | 8041b614bc85127efabd737a2dbe285e273c6f6b /kernel/audit.c | |
parent | 65a8766f5f50a5cd342f3d8f77a30917648ddb67 (diff) | |
download | linux-4fa7f086993594e79f456a04656da2fcb5691209.tar.xz |
audit: simplify audit_enabled check in audit_watch_log_rule_change()
Check the audit_enabled flag and bail immediately. This does not change
the functionality, but brings the code format in line with similar
checks in audit_tree_log_remove_rule(), audit_mark_log_rule_change(),
and elsewhere in the audit code.
See: https://github.com/linux-audit/audit-kernel/issues/50
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: tweaked subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit.c')
0 files changed, 0 insertions, 0 deletions