All of lore.kernel.org
 help / color / mirror / Atom feed
From: huzhi001@208suo.com
To: akpm@linux-foundation.org, adobriyan@gmail.com,
	fullspring2018@gmail.com, rdunlap@infradead.org
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: [PATCH] fs/proc: Fix four errors in array.c
Date: Fri, 14 Jul 2023 14:44:05 +0800	[thread overview]
Message-ID: <f9eefe1e9ffbb24e08426057f067e3a3@208suo.com> (raw)
In-Reply-To: <tencent_0E7C6CFA6AE1AA6BEA9E185CEC3DB582CA09@qq.com>

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);

           reply	other threads:[~2023-07-14  6:44 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <tencent_0E7C6CFA6AE1AA6BEA9E185CEC3DB582CA09@qq.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f9eefe1e9ffbb24e08426057f067e3a3@208suo.com \
    --to=huzhi001@208suo.com \
    --cc=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=fullspring2018@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.