public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] kernel: Moves trailing statements to next line
@ 2023-08-15 20:47 Atul Kumar Pant
  2023-08-15 22:16 ` Paul Moore
  0 siblings, 1 reply; 2+ messages in thread
From: Atul Kumar Pant @ 2023-08-15 20:47 UTC (permalink / raw)
  To: paul, eparis; +Cc: Atul Kumar Pant, audit, linux-kernel, shuah

Fixes following checkpatch.pl issue:
ERROR: trailing statements should be on next line

Signed-off-by: Atul Kumar Pant <atulpant.linux@gmail.com>
---
 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 9bc0b0301198..a5393eda7f9d 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -323,7 +323,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 42d99896e7a6..a25757f09255 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;
 }
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] kernel: Moves trailing statements to next line
  2023-08-15 20:47 [PATCH v1] kernel: Moves trailing statements to next line Atul Kumar Pant
@ 2023-08-15 22:16 ` Paul Moore
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2023-08-15 22:16 UTC (permalink / raw)
  To: Atul Kumar Pant, eparis; +Cc: Atul Kumar Pant, audit, linux-kernel, shuah

On Aug 15, 2023 Atul Kumar Pant <atulpant.linux@gmail.com> wrote:
> 
> Fixes following checkpatch.pl issue:
> ERROR: trailing statements should be on next line
> 
> Signed-off-by: Atul Kumar Pant <atulpant.linux@gmail.com>
> ---
>  kernel/audit.c       | 3 ++-
>  kernel/auditfilter.c | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)

Changed the subject line to "audit: move trailing statements to next
line", otherwise it looked fine.  Merged into audit/next.

--
paul-moore.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-15 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-15 20:47 [PATCH v1] kernel: Moves trailing statements to next line Atul Kumar Pant
2023-08-15 22:16 ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox