Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Fix logic inversion. Progress, but still ...



details:   https://anonhg.NetBSD.org/src/rev/23d7153a29bc
branches:  trunk
changeset: 448606:23d7153a29bc
user:      oster <oster%NetBSD.org@localhost>
date:      Wed Feb 06 02:49:50 2019 +0000

description:
Fix logic inversion.  Progress, but still broken.

diffstat:

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

diffs (27 lines):

diff -r ffb62ca52de9 -r 23d7153a29bc sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Wed Feb 06 02:49:09 2019 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Wed Feb 06 02:49:50 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.368 2019/02/06 02:49:09 oster Exp $       */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.369 2019/02/06 02:49:50 oster Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  ***********************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.368 2019/02/06 02:49:09 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.369 2019/02/06 02:49:50 oster Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_raid_autoconfig.h"
@@ -1067,7 +1067,7 @@
        case RAIDFRAME_SET_AUTOCONFIG:
        case RAIDFRAME_SET_COMPONENT_LABEL:
        case RAIDFRAME_SET_ROOT:
-               return (rs->sc_flags & RAIDF_INITED) != 0;
+               return (rs->sc_flags & RAIDF_INITED) == 0;
        }
        return false;
 }



Home | Main Index | Thread Index | Old Index