Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fdt fdt/pmu was not working. do return only if ...



details:   https://anonhg.NetBSD.org/src/rev/ff36e4f4e395
branches:  trunk
changeset: 372293:ff36e4f4e395
user:      ryo <ryo%NetBSD.org@localhost>
date:      Wed Nov 09 19:03:38 2022 +0000

description:
fdt/pmu was not working. do return only if there is an error.

diffstat:

 sys/arch/arm/fdt/pmu_fdt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r ffc557af0f8f -r ff36e4f4e395 sys/arch/arm/fdt/pmu_fdt.c
--- a/sys/arch/arm/fdt/pmu_fdt.c        Wed Nov 09 14:43:20 2022 +0000
+++ b/sys/arch/arm/fdt/pmu_fdt.c        Wed Nov 09 19:03:38 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmu_fdt.c,v 1.10 2021/11/25 09:36:20 skrll Exp $ */
+/* $NetBSD: pmu_fdt.c,v 1.11 2022/11/09 19:03:38 ryo Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmu_fdt.c,v 1.10 2021/11/25 09:36:20 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmu_fdt.c,v 1.11 2022/11/09 19:03:38 ryo Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -137,8 +137,8 @@
                if (error) {
                        aprint_error_dev(self,
                            "couldn't initialise PMU event counter");
+                       return;
                }
-               return;
        }
 
        ih = kmem_zalloc(sizeof(void *) * ncpu, KM_SLEEP);



Home | Main Index | Thread Index | Old Index