lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161104125533.3916-1-cov@codeaurora.org>
Date:   Fri,  4 Nov 2016 08:55:31 -0400
From:   Christopher Covington <cov@...eaurora.org>
To:     trivial@...nel.org, Andrew Morton <akpm@...ux-foundation.org>,
        Alexey Dobriyan <adobriyan@...il.com>,
        Kees Cook <keescook@...omium.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
        Joe Perches <joe@...ches.com>,
        Andy Lutomirski <luto@...nel.org>,
        "Richard W.M. Jones" <rjones@...hat.com>,
        Christopher Covington <cov@...eaurora.org>,
        linux-kernel@...r.kernel.org
Subject: [PATCH] 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.

Signed-off-by: Christopher Covington <cov@...eaurora.org>
---
 fs/proc/array.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/proc/array.c b/fs/proc/array.c
index 81818ad..9a3ca9e 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -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);
-- 
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.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ