Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp700/hp700 KNF



details:   https://anonhg.NetBSD.org/src/rev/67a11ca677b1
branches:  trunk
changeset: 749481:67a11ca677b1
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Nov 30 16:58:40 2009 +0000

description:
KNF

diffstat:

 sys/arch/hp700/hp700/intr.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r ca826ce64a30 -r 67a11ca677b1 sys/arch/hp700/hp700/intr.c
--- a/sys/arch/hp700/hp700/intr.c       Mon Nov 30 16:22:33 2009 +0000
+++ b/sys/arch/hp700/hp700/intr.c       Mon Nov 30 16:58:40 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.18 2009/05/08 10:12:55 skrll Exp $  */
+/*     $NetBSD: intr.c,v 1.19 2009/11/30 16:58:40 skrll Exp $  */
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.18 2009/05/08 10:12:55 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.19 2009/11/30 16:58:40 skrll Exp $");
 
 #define __MUTEX_PRIVATE
 
@@ -127,7 +127,8 @@
 
        /* Add this structure to the list. */
        for (idx = 0; idx < HP700_INT_BITS; idx++)
-               if (hp700_int_regs[idx] == NULL) break;
+               if (hp700_int_regs[idx] == NULL)
+                       break;
        if (idx == HP700_INT_BITS)
                panic("hp700_intr_reg_establish: too many regs");
        hp700_int_regs[idx] = int_reg;
@@ -193,7 +194,8 @@
         */
        if (handler == NULL) {
                for (idx = 0; idx < HP700_INT_BITS; idx++)
-                       if (hp700_int_regs[idx] == arg) break;
+                       if (hp700_int_regs[idx] == arg)
+                               break;
                if (idx == HP700_INT_BITS)
                        panic("hp700_intr_establish: unknown int reg");
                int_reg->int_reg_bits_map[31 ^ bit_pos] =
@@ -255,7 +257,8 @@
        int idx;
 
        for (idx = 0; idx < HP700_INT_BITS; idx++)
-               if (hp700_int_bits[idx].int_bit_reg == NULL) break;
+               if (hp700_int_bits[idx].int_bit_reg == NULL)
+                       break;
        if (idx == HP700_INT_BITS)
                panic("_hp700_intr_spl_bit: too many devices");
        return idx;



Home | Main Index | Thread Index | Old Index