Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 KNF. Same code before and after.



details:   https://anonhg.NetBSD.org/src/rev/3252ec1ac4e1
branches:  trunk
changeset: 354812:3252ec1ac4e1
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Jun 30 08:10:50 2017 +0000

description:
KNF. Same code before and after.

diffstat:

 sys/arch/arm/arm32/db_interface.c |  52 +++++++++++++++++++-------------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diffs (125 lines):

diff -r e4bc28684220 -r 3252ec1ac4e1 sys/arch/arm/arm32/db_interface.c
--- a/sys/arch/arm/arm32/db_interface.c Fri Jun 30 08:05:22 2017 +0000
+++ b/sys/arch/arm/arm32/db_interface.c Fri Jun 30 08:10:50 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.55 2017/06/30 08:05:22 skrll Exp $  */
+/*     $NetBSD: db_interface.c,v 1.56 2017/06/30 08:10:50 skrll Exp $  */
 
 /*
  * Copyright (c) 1996 Scott K. Stevens
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.55 2017/06/30 08:05:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.56 2017/06/30 08:10:50 skrll Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -192,7 +192,7 @@
        }
 #endif
 
-       return (1);
+       return 1;
 }
 #endif
 
@@ -398,8 +398,8 @@
                else
                        kdb_trap(-1, frame);
        } else
-               return (1);
-       return (0);
+               return 1;
+       return 0;
 }
 
 extern u_int esym;
@@ -426,37 +426,37 @@
 
        switch (reg) {
        case 0:
-               return (regs->tf_r0);
+               return regs->tf_r0;
        case 1:
-               return (regs->tf_r1);
+               return regs->tf_r1;
        case 2:
-               return (regs->tf_r2);
+               return regs->tf_r2;
        case 3:
-               return (regs->tf_r3);
+               return regs->tf_r3;
        case 4:
-               return (regs->tf_r4);
+               return regs->tf_r4;
        case 5:
-               return (regs->tf_r5);
+               return regs->tf_r5;
        case 6:
-               return (regs->tf_r6);
+               return regs->tf_r6;
        case 7:
-               return (regs->tf_r7);
+               return regs->tf_r7;
        case 8:
-               return (regs->tf_r8);
+               return regs->tf_r8;
        case 9:
-               return (regs->tf_r9);
+               return regs->tf_r9;
        case 10:
-               return (regs->tf_r10);
+               return regs->tf_r10;
        case 11:
-               return (regs->tf_r11);
+               return regs->tf_r11;
        case 12:
-               return (regs->tf_r12);
+               return regs->tf_r12;
        case 13:
-               return (regs->tf_svc_sp);
+               return regs->tf_svc_sp;
        case 14:
-               return (regs->tf_svc_lr);
+               return regs->tf_svc_lr;
        case 15:
-               return (regs->tf_pc);
+               return regs->tf_pc;
        default:
                panic("db_fetch_reg: botch");
        }
@@ -473,19 +473,19 @@
                addr = ((insn << 2) & 0x03ffffff);
                if (addr & 0x02000000)
                        addr |= 0xfc000000;
-               return (pc + 8 + addr);
+               return pc + 8 + addr;
        case 0x7:       /* ldr pc, [pc, reg, lsl #2] */
                addr = db_fetch_reg(insn & 0xf, regs);
                addr = pc + 8 + (addr << 2);
                db_read_bytes(addr, 4, (char *)&addr);
-               return (addr);
+               return addr;
        case 0x5:       /* ldr pc, [reg] */
                addr = db_fetch_reg((insn >> 16) & 0xf, regs);
                db_read_bytes(addr, 4, (char *)&addr);
-               return (addr);
+               return addr;
        case 0x1:       /* mov pc, reg */
                addr = db_fetch_reg(insn & 0xf, regs);
-               return (addr);
+               return addr;
        case 0x8:       /* ldmxx reg, {..., pc} */
        case 0x9:
                addr = db_fetch_reg((insn >> 16) & 0xf, regs);
@@ -508,7 +508,7 @@
                        break;
                }
                db_read_bytes(addr, 4, (char *)&addr);
-               return (addr);
+               return addr;
        default:
                panic("branch_taken: botch");
        }



Home | Main Index | Thread Index | Old Index