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>] [day] [month] [year] [list]
Date:   Fri, 14 Jul 2023 14:44:05 +0800
From:   huzhi001@...suo.com
To:     akpm@...ux-foundation.org, adobriyan@...il.com,
        fullspring2018@...il.com, rdunlap@...radead.org
Cc:     linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: [PATCH] fs/proc: Fix four errors in array.c

The following checkpatch errors are removed:
ERROR: trailing statements should be on next line
ERROR: trailing statements should be on next line
ERROR: trailing statements should be on next line
ERROR: trailing statements should be on next line

Signed-off-by: ZhiHu <huzhi001@...suo.com>
---
  fs/proc/array.c | 12 ++++++++----
  1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/fs/proc/array.c b/fs/proc/array.c
index d35bbf35a874..9cd8d703ade8 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -236,10 +236,14 @@ void render_sigset_t(struct seq_file *m, const 
char *header,
          int x = 0;

          i -= 4;
-        if (sigismember(set, i+1)) x |= 1;
-        if (sigismember(set, i+2)) x |= 2;
-        if (sigismember(set, i+3)) x |= 4;
-        if (sigismember(set, i+4)) x |= 8;
+        if (sigismember(set, i+1))
+            x |= 1;
+        if (sigismember(set, i+2))
+            x |= 2;
+        if (sigismember(set, i+3))
+            x |= 4;
+        if (sigismember(set, i+4))
+            x |= 8;
          seq_putc(m, hex_asc[x]);
      } while (i >= 4);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ