Skip to contentSkip to conversation

proc: Trivial brace balancing

PATCH In review Christopher Covington 2 participants 2 messages Nov 4, 2016 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: Trivial brace balancing

As suggested by Documentation/CodingStyle right before section 3.1: Spaces, use braces on all branches of a conditional statement if they are used on any branch. No functional changes.

---
 fs/proc/array.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/proc/array.c +2 -1
index 81818ad..9a3ca9e 100644
@@ -552,8 +552,9 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
 		seq_put_decimal_ull(m, " ", mm->arg_end);
 		seq_put_decimal_ull(m, " ", mm->env_start);
 		seq_put_decimal_ull(m, " ", mm->env_end);
-	} else
+	} else {
 		seq_puts(m, " 0 0 0 0 0 0 0");
+	}
 
 	if (permitted)
 		seq_put_decimal_ll(m, " ", task->exit_code);
Signature · 3 lines
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora
Forum, a Linux Foundation Collaborative Project.
#1 lore raw

fs/proc/array.c static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, · line 557

Quoted 4 lines · Christopher Covington
fs/proc/array.c +2 -1
-       } else
+       } else {
                seq_puts(m, " 0 0 0 0 0 0 0");
+       }

Oh, come on, people.