audit: fix some horrible switch statement style crimes
authorPaul Moore <paul@paul-moore.com>
Thu, 16 Jun 2016 21:08:19 +0000 (17:08 -0400)
committerPaul Moore <paul@paul-moore.com>
Thu, 16 Jun 2016 21:08:19 +0000 (17:08 -0400)
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditfilter.c
kernel/auditsc.c

index 8a8aa3fbc8d828beac730caf0834c068021cd560..ff59a5eed691763063249fff5ad39398150c2f23 100644 (file)
@@ -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;
 }
index 7d0e3cf8abe1d687325bc8096368eaba38d9bd0d..ec4c552876a7c92b795c425585528f68c8c11caa 100644 (file)
@@ -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;
 }