Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips KNF: put "if (...)" and following stateme...



details:   https://anonhg.NetBSD.org/src/rev/286738d76915
branches:  trunk
changeset: 574240:286738d76915
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Feb 25 07:20:10 2005 +0000

description:
KNF: put "if (...)" and following statement on separate lines.

diffstat:

 sys/arch/mips/mips/sys_machdep.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 168ff5cd9524 -r 286738d76915 sys/arch/mips/mips/sys_machdep.c
--- a/sys/arch/mips/mips/sys_machdep.c  Fri Feb 25 07:18:40 2005 +0000
+++ b/sys/arch/mips/mips/sys_machdep.c  Fri Feb 25 07:20:10 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_machdep.c,v 1.27 2004/11/06 23:22:43 christos Exp $        */
+/*     $NetBSD: sys_machdep.c,v 1.28 2005/02/25 07:20:10 simonb Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.27 2004/11/06 23:22:43 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.28 2005/02/25 07:20:10 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -75,7 +75,8 @@
                struct mips_cacheflush_args cfua;
 
                error = copyin(SCARG(uap, parms), &cfua, sizeof(cfua));
-               if (error != 0) return (error);
+               if (error != 0)
+                       return (error);
                error =  mips_user_cacheflush(p, cfua.va, cfua.nbytes,
                     cfua.whichcache);
                break;
@@ -84,7 +85,8 @@
                struct mips_cachectl_args ccua;
 
                error = copyin(SCARG(uap, parms), &ccua, sizeof(ccua));
-               if (error != 0) return (error);
+               if (error != 0)
+                       return (error);
                error = mips_user_cachectl(p, ccua.va, ccua.nbytes, ccua.ctl);
                break;
        }



Home | Main Index | Thread Index | Old Index