Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx KNF: put "if (...)" and following st...



details:   https://anonhg.NetBSD.org/src/rev/87ba55fcdb57
branches:  trunk
changeset: 574238:87ba55fcdb57
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Feb 25 07:09:58 2005 +0000

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

diffstat:

 sys/arch/powerpc/ibm4xx/pmap.c |   7 ++++---
 sys/arch/powerpc/ibm4xx/trap.c |  10 ++++++----
 2 files changed, 10 insertions(+), 7 deletions(-)

diffs (66 lines):

diff -r 5346c11e4961 -r 87ba55fcdb57 sys/arch/powerpc/ibm4xx/pmap.c
--- a/sys/arch/powerpc/ibm4xx/pmap.c    Fri Feb 25 02:01:59 2005 +0000
+++ b/sys/arch/powerpc/ibm4xx/pmap.c    Fri Feb 25 07:09:58 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.31 2005/01/27 12:35:53 simonb Exp $ */
+/*     $NetBSD: pmap.c,v 1.32 2005/02/25 07:09:58 simonb Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.31 2005/01/27 12:35:53 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.32 2005/02/25 07:09:58 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -527,7 +527,8 @@
                        if (!uvm_page_physget(&pg))
                                panic("pmap_growkernel: no memory");
                }
-               if (!pg) panic("pmap_growkernel: no pages");
+               if (!pg)
+                       panic("pmap_growkernel: no pages");
                pmap_zero_page((paddr_t)pg);
 
                /* XXX This is based on all phymem being addressable */
diff -r 5346c11e4961 -r 87ba55fcdb57 sys/arch/powerpc/ibm4xx/trap.c
--- a/sys/arch/powerpc/ibm4xx/trap.c    Fri Feb 25 02:01:59 2005 +0000
+++ b/sys/arch/powerpc/ibm4xx/trap.c    Fri Feb 25 07:09:58 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.24 2005/01/19 11:41:07 simonb Exp $ */
+/*     $NetBSD: trap.c,v 1.25 2005/02/25 07:09:58 simonb Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.24 2005/01/19 11:41:07 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.25 2005/02/25 07:09:58 simonb Exp $");
 
 #include "opt_altivec.h"
 #include "opt_ddb.h"
@@ -438,7 +438,8 @@
        struct faultbuf env;
 
        /* For bigger buffers use the faster copy */
-       if (len > 256) return (bigcopyin(udaddr, kaddr, len));
+       if (len > 256)
+               return (bigcopyin(udaddr, kaddr, len));
 
        if (setfault(&env)) {
                curpcb->pcb_onfault = 0;
@@ -518,7 +519,8 @@
        struct faultbuf env;
 
        /* For big copies use more efficient routine */
-       if (len > 256) return (bigcopyout(kaddr, udaddr, len));
+       if (len > 256)
+               return (bigcopyout(kaddr, udaddr, len));
 
        if (setfault(&env)) {
                curpcb->pcb_onfault = 0;



Home | Main Index | Thread Index | Old Index