From b1a0f64cc65ea2ebfaae9e0ce623e993a7d24257 Mon Sep 17 00:00:00 2001 From: Atul Kumar Pant Date: Wed, 16 Aug 2023 02:17:51 +0530 Subject: [PATCH] audit: move trailing statements to next line Fixes following checkpatch.pl issue: ERROR: trailing statements should be on next line Signed-off-by: Atul Kumar Pant [PM: subject line tweak] Signed-off-by: Paul Moore --- kernel/audit.c | 3 ++- kernel/auditfilter.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index 45b2fb1e45af..16205dd29843 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -321,7 +321,8 @@ static inline int audit_rate_check(void) unsigned long now; int retval = 0; - if (!audit_rate_limit) return 1; + if (!audit_rate_limit) + return 1; spin_lock_irqsave(&lock, flags); if (++messages < audit_rate_limit) { diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 12320120bb00..8317a37dea0b 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c @@ -694,7 +694,8 @@ static struct audit_rule_data *audit_krule_to_data(struct audit_krule *krule) data->values[i] = f->val; } } - for (i = 0; i < AUDIT_BITMASK_SIZE; i++) data->mask[i] = krule->mask[i]; + for (i = 0; i < AUDIT_BITMASK_SIZE; i++) + data->mask[i] = krule->mask[i]; return data; }