Skip to contentSkip to conversation

fs/proc: Fix four errors in array.c

PATCH New [email protected] 1 participant 1 message Jul 14, 2023 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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

---
 fs/proc/array.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
fs/proc/array.c +8 -4
index d35bbf35a874..9cd8d703ade8 100644
@@ -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);