mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs/proc: Fix four errors in array.c
       [not found] <tencent_0E7C6CFA6AE1AA6BEA9E185CEC3DB582CA09@qq.com>
@ 2023-07-14  6:44 ` huzhi001
  0 siblings, 0 replies; only message in thread
From: huzhi001 @ 2023-07-14  6:44 UTC (permalink / raw)
  To: akpm, adobriyan, fullspring2018, rdunlap; +Cc: linux-kernel, linux-fsdevel

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@208suo.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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-14  6:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tencent_0E7C6CFA6AE1AA6BEA9E185CEC3DB582CA09@qq.com>
2023-07-14  6:44 ` [PATCH] fs/proc: Fix four errors in array.c huzhi001

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

all inboxes | Powered by JetHome®