Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea Revert unintended change.



details:   https://anonhg.NetBSD.org/src/rev/26c0b63617ac
branches:  trunk
changeset: 959567:26c0b63617ac
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Feb 19 05:23:53 2021 +0000

description:
Revert unintended change.

diffstat:

 sys/arch/powerpc/oea/ofw_consinit.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f8702d3b1727 -r 26c0b63617ac sys/arch/powerpc/oea/ofw_consinit.c
--- a/sys/arch/powerpc/oea/ofw_consinit.c       Fri Feb 19 05:21:39 2021 +0000
+++ b/sys/arch/powerpc/oea/ofw_consinit.c       Fri Feb 19 05:23:53 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_consinit.c,v 1.20 2021/02/19 05:21:39 thorpej Exp $ */
+/* $NetBSD: ofw_consinit.c,v 1.21 2021/02/19 05:23:53 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_consinit.c,v 1.20 2021/02/19 05:21:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_consinit.c,v 1.21 2021/02/19 05:23:53 thorpej Exp $");
 
 #include "adb.h"
 #include "adbkbd.h"
@@ -124,7 +124,7 @@
 
        OFPRINTF("console node: %08x\n", console_node);
 
-       if (console_node <= 0)
+       if (console_node == -1)
                goto nocons;
 
        memset(name, 0, sizeof(name));



Home | Main Index | Thread Index | Old Index