Skip to contentSkip to conversation

audit: Modifying indentation issue.

PATCH In review l00581214 2 participants 2 messages Jul 29, 2022 – Aug 22, 2022

Subsystems (2)
lore
Share & tools
lore

l00581214

author
#0 lore raw

PATCH 1/1 audit: Modifying indentation issue.

From: Tie Liu <[email protected]>

Modifying indentation issue in audit_rate_check().

---
 kernel/audit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/audit.c +2 -1
index 7690c29d4..deeede166 100644
@@ -324,7 +324,8 @@ static inline int audit_rate_check(void)
 	unsigned long		elapsed;
 	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) {
Signature · 1 line
2.27.0
maintainer
#1 lore raw
Quoted 9 lines · On Fri, Jul 29, 2022 at 5:05 AM l00581214 <[email protected]> wrote:

From: Tie Liu <[email protected]>

Modifying indentation issue in audit_rate_check().

---
 kernel/audit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

While I agree that the style in this patch is preferable to the existing style in the code, I'm growing weary of these minor style change from developers who have not contributing any other meaningful change to the audit subsystem. Once you have established a history of useful contributions to the audit subsystem feel free to (re)submit this patch.

Quoted 14 lines
kernel/audit.c +2 -1
index 7690c29d4..deeede166 100644
@@ -324,7 +324,8 @@ static inline int audit_rate_check(void)
        unsigned long           elapsed;
        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) {
Signature · 1 line
paul-moore.com