Module Name:    src
Committed By:   tsutsui
Date:           Wed Feb 15 12:39:29 UTC 2017

Modified Files:
        src/sys/arch/macppc/dev: mesh.c

Log Message:
Fix an inverted logic.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/macppc/dev/mesh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/macppc/dev/mesh.c
diff -u src/sys/arch/macppc/dev/mesh.c:1.37 src/sys/arch/macppc/dev/mesh.c:1.38
--- src/sys/arch/macppc/dev/mesh.c:1.37	Fri Jul 15 22:10:47 2016
+++ src/sys/arch/macppc/dev/mesh.c	Wed Feb 15 12:39:29 2017
@@ -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 @@ mesh_attach(device_t parent, device_t se
 	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");
 }
 

Reply via email to