Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev Fix an inverted logic.



details:   https://anonhg.NetBSD.org/src/rev/e67faec24b49
branches:  trunk
changeset: 821729:e67faec24b49
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Feb 15 12:39:29 2017 +0000

description:
Fix an inverted logic.

diffstat:

 sys/arch/macppc/dev/mesh.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r afe5f297a210 -r e67faec24b49 sys/arch/macppc/dev/mesh.c
--- a/sys/arch/macppc/dev/mesh.c        Wed Feb 15 11:52:11 2017 +0000
+++ b/sys/arch/macppc/dev/mesh.c        Wed Feb 15 12:39:29 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mesh.c,v 1.37 2016/07/15 22:10:47 macallan Exp $       */
+/*     $NetBSD: mesh.c,v 1.38 2017/02/15 12:39:29 tsutsui Exp $        */
 
 /*-
  * Copyright (c) 2000  Tsubai Masanari.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mesh.c,v 1.37 2016/07/15 22:10:47 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mesh.c,v 1.38 2017/02/15 12:39:29 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -264,7 +264,7 @@
        intr_establish(sc->sc_irq, IST_EDGE, IPL_BIO, mesh_intr, sc);
 
        /* Reset SCSI bus when halt. */
-       if (pmf_device_register1(self, NULL, NULL, mesh_shutdown))
+       if (!pmf_device_register1(self, NULL, NULL, mesh_shutdown))
                aprint_error_dev(self, "couldn't establish power handler\n");
 }
 



Home | Main Index | Thread Index | Old Index