[PATCH] powerpc: xmon: Remove space after '(' and before ')'

hanyu001 at 208suo.com hanyu001 at 208suo.com
Mon Jul 17 19:22:39 AEST 2023


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


More information about the Linuxppc-dev mailing list