Skip to content

Commit

Permalink
audit: move trailing statements to next line
Browse files Browse the repository at this point in the history
Fixes following checkpatch.pl issue:
ERROR: trailing statements should be on next line

Signed-off-by: Atul Kumar Pant <atulpant.linux@gmail.com>
[PM: subject line tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
  • Loading branch information
Atul Kumar Pant authored and pcmoore committed Aug 15, 2023
1 parent 22cde10 commit b1a0f64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion kernel/auditfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b1a0f64

Please sign in to comment.