summaryrefslogtreecommitdiff
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2016-06-16 17:08:19 -0400
committerPaul Moore <paul@paul-moore.com>2016-06-16 17:08:19 -0400
commit66b12abc846d31e75fa5f2f31db1396ddfa8ee4a (patch)
tree96f853fb5fb79336e6e4a415ce67f044a88c0869 /kernel/auditsc.c
parent2b4c7afe79a8a0a0e05edeaded5653c190153f9b (diff)
downloadlinux-next-66b12abc846d31e75fa5f2f31db1396ddfa8ee4a.tar.gz
audit: fix some horrible switch statement style crimes
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r--kernel/auditsc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 7d0e3cf8abe1..ec4c552876a7 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -695,8 +695,12 @@ static int audit_filter_rules(struct task_struct *tsk,
ctx->prio = rule->prio;
}
switch (rule->action) {
- case AUDIT_NEVER: *state = AUDIT_DISABLED; break;
- case AUDIT_ALWAYS: *state = AUDIT_RECORD_CONTEXT; break;
+ case AUDIT_NEVER:
+ *state = AUDIT_DISABLED;
+ break;
+ case AUDIT_ALWAYS:
+ *state = AUDIT_RECORD_CONTEXT;
+ break;
}
return 1;
}