linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: xmon: Remove space after '(' and before ')'
       [not found] <tencent_C47ED53495F8E338441AB48CB53AE7AF0208@qq.com>
@ 2023-07-17  9:22 ` hanyu001
  0 siblings, 0 replies; only message in thread
From: hanyu001 @ 2023-07-17  9:22 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, maninder1.s, nathanl, gustavoars
  Cc: linuxppc-dev, linux-kernel

The patch fixes the following errors detected by checkpatch:

./arch/powerpc/xmon/xmon.c:2426: ERROR: space prohibited after that open 
parenthesis '('
./arch/powerpc/xmon/xmon.c:2426: ERROR: space prohibited before that 
close parenthesis ')'
./arch/powerpc/xmon/xmon.c:2426: ERROR: space required before the open 
parenthesis '('

Signed-off-by: ztt <1549089851@qq.com>
---
  arch/powerpc/xmon/xmon.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 013b63eb4cd9..c10d9ff02af1 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1057,7 +1057,7 @@ cmds(struct pt_regs *excp)
          flush_input();
          termch = 0;
          cmd = skipbl();
-        if(cmd == '\n' ) {
+        if (cmd == '\n') {
              if (last_cmd == NULL)
                  continue;
              take_input(last_cmd);
@@ -2423,7 +2423,7 @@ memex(void)
      }
      last_cmd = "m\n";
      while ((cmd = skipbl()) != '\n') {
-        switch( cmd ){
+        switch (cmd) {
          case 'b':    size = 1;    break;
          case 'w':    size = 2;    break;
          case 'l':    size = 4;    break;

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

only message in thread, other threads:[~2023-07-17  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <tencent_C47ED53495F8E338441AB48CB53AE7AF0208@qq.com>
2023-07-17  9:22 ` [PATCH] powerpc: xmon: Remove space after '(' and before ')' hanyu001

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).