Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/6b5a92e7c52b
branches:  trunk
changeset: 779348:6b5a92e7c52b
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon May 21 20:58:39 2012 +0000

description:
KNF

diffstat:

 sys/arch/hp700/dev/apic.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 184d1d3b256a -r 6b5a92e7c52b sys/arch/hp700/dev/apic.c
--- a/sys/arch/hp700/dev/apic.c Mon May 21 20:51:46 2012 +0000
+++ b/sys/arch/hp700/dev/apic.c Mon May 21 20:58:39 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apic.c,v 1.14 2012/04/14 10:43:19 skrll Exp $  */
+/*     $NetBSD: apic.c,v 1.15 2012/05/21 20:58:39 skrll Exp $  */
 
 /*     $OpenBSD: apic.c,v 1.14 2011/05/01 21:59:39 kettenis Exp $      */
 
@@ -141,7 +141,8 @@
        if (sc->sc_irq[line] == 0)
                sc->sc_irq[line] = hp700_intr_allocate_bit(&ir_cpu);
        *ihp = (line << APIC_INT_LINE_SHIFT) | sc->sc_irq[line];
-       return (APIC_INT_IRQ(*ihp) == 0);
+
+       return APIC_INT_IRQ(*ihp) == 0;
 }
 
 const char *
@@ -152,7 +153,7 @@
        snprintf(buf, sizeof(buf), "line %ld irq %ld",
            APIC_INT_LINE(ih), APIC_INT_IRQ(ih));
 
-       return (buf);
+       return buf;
 }
 
 void *
@@ -172,7 +173,7 @@
 
        /* no mapping or bogus */
        if (irq <= 0 || irq > 31)
-               return (NULL);
+               return NULL;
 
        aiv = malloc(sizeof(struct apic_iv), M_DEVBUF, M_NOWAIT);
        if (aiv == NULL)
@@ -234,7 +235,7 @@
 
        apic_intr_list[irq] = aiv;
 
-       return (arg);
+       return arg;
 }
 
 void
@@ -262,7 +263,7 @@
        /* Signal EOI. */
        elroy_write32(&r->apic_eoi, htole32((31 - irq) & APIC_ENT0_VEC));
 
-       return (claimed);
+       return claimed;
 }
 
 void



Home | Main Index | Thread Index | Old Index