summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormaxv <maxv@NetBSD.org>2014-03-01 16:59:41 +0000
committermaxv <maxv@NetBSD.org>2014-03-01 16:59:41 +0000
commit2d55e7ed835ee8d18747cb66c1d0af2152ec23a7 (patch)
treee8b88a1dcbd7192a4e317f7f8dd92110acc3843b /sys/dev
parent721d623b26d0483e2bbaa2070122476ea4d0d9b5 (diff)
Some {} are missing. The behavior is thus wrong: the code always jumps to
out1. Spotted by my code scanner. ok christos@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/tpm_acpi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/acpi/tpm_acpi.c b/sys/dev/acpi/tpm_acpi.c
index 113d21dfac0..3dd7392400f 100644
--- a/sys/dev/acpi/tpm_acpi.c
+++ b/sys/dev/acpi/tpm_acpi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tpm_acpi.c,v 1.3 2012/01/22 20:25:25 christos Exp $ */
+/* $NetBSD: tpm_acpi.c,v 1.4 2014/03/01 16:59:41 maxv Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tpm_acpi.c,v 1.3 2012/01/22 20:25:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tpm_acpi.c,v 1.4 2014/03/01 16:59:41 maxv Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -185,9 +185,10 @@ tpm_acpi_attach(device_t parent, device_t self, void *aux)
else
inum = irq->ar_irq;
- if ((rv = (*sc->sc_init)(sc, inum, device_xname(sc->sc_dev))) != 0)
+ if ((rv = (*sc->sc_init)(sc, inum, device_xname(sc->sc_dev))) != 0) {
aprint_error_dev(sc->sc_dev, "cannot init device %d\n", rv);
goto out1;
+ }
if (inum != -1 &&
(sc->sc_ih = isa_intr_establish(aa->aa_ic, irq->ar_irq,