Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa PR/45932: Add missing braces... This will probab...



details:   https://anonhg.NetBSD.org/src/rev/8702cee7b68e
branches:  trunk
changeset: 773560:8702cee7b68e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 06 04:29:47 2012 +0000

description:
PR/45932: Add missing braces... This will probably fix interrupts too!

diffstat:

 sys/dev/isa/tpm_isa.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r ddd2cbad7cb7 -r 8702cee7b68e sys/dev/isa/tpm_isa.c
--- a/sys/dev/isa/tpm_isa.c     Mon Feb 06 02:14:10 2012 +0000
+++ b/sys/dev/isa/tpm_isa.c     Mon Feb 06 04:29:47 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tpm_isa.c,v 1.1 2012/01/22 06:44:28 christos Exp $     */
+/*     $NetBSD: tpm_isa.c,v 1.2 2012/02/06 04:29:47 christos Exp $     */
 
 /*
  * Copyright (c) 2008, 2009 Michael Shalayeff
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tpm_isa.c,v 1.1 2012/01/22 06:44:28 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tpm_isa.c,v 1.2 2012/02/06 04:29:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -118,9 +118,10 @@
        }
 
        if ((rv = (*sc->sc_init)(sc, ia->ia_irq[0].ir_irq,
-           device_xname(sc->sc_dev))) != 0)
+           device_xname(sc->sc_dev))) != 0) {
                bus_space_unmap(sc->sc_bt, sc->sc_bh, size);
                return;
+       }
 
        /*
         * Only setup interrupt handler when we have a vector and the



Home | Main Index | Thread Index | Old Index