* [PATCH] audit: fix some horrible switch statement style crimes
@ 2016-06-16 21:31 Paul Moore
0 siblings, 0 replies; only message in thread
From: Paul Moore @ 2016-06-16 21:31 UTC (permalink / raw)
To: linux-audit
From: Paul Moore <paul@paul-moore.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
---
kernel/auditfilter.c | 8 ++++++--
kernel/auditsc.c | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index 8a8aa3fb..ff59a5e 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -1343,8 +1343,12 @@ static int audit_filter_user_rules(struct audit_krule *rule, int type,
return result;
}
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;
}
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 7d0e3cf..ec4c552 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;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-16 21:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16 21:31 [PATCH] audit: fix some horrible switch statement style crimes Paul Moore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox