Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Fix inverted result when status is "okay"



details:   https://anonhg.NetBSD.org/src/rev/2004c06404a6
branches:  trunk
changeset: 372264:2004c06404a6
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 05 10:04:35 2022 +0000

description:
Fix inverted result when status is "okay"

diffstat:

 sys/dev/fdt/cpus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bf53524dd35b -r 2004c06404a6 sys/dev/fdt/cpus.c
--- a/sys/dev/fdt/cpus.c        Sat Nov 05 08:29:17 2022 +0000
+++ b/sys/dev/fdt/cpus.c        Sat Nov 05 10:04:35 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpus.c,v 1.5 2019/01/02 14:54:54 jmcneill Exp $ */
+/* $NetBSD: cpus.c,v 1.6 2022/11/05 10:04:35 skrll Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpus.c,v 1.5 2019/01/02 14:54:54 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpus.c,v 1.6 2022/11/05 10:04:35 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -85,7 +85,7 @@
        s = fdtbus_get_string(child, "status");
        if (s) {
                if (strcmp(s, "okay") == 0)
-                       return false;
+                       return true;
                if (strcmp(s, "disabled") == 0)
                        return of_hasprop(child, "enable-method");
                return false;



Home | Main Index | Thread Index | Old Index