Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dkwedge Remove bogus assertions.



details:   https://anonhg.NetBSD.org/src/rev/56421184002a
branches:  trunk
changeset: 371187:56421184002a
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Tue Sep 27 17:04:52 2022 +0000

description:
Remove bogus assertions.

diffstat:

 sys/dev/dkwedge/dk.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 0dfb6fff27d2 -r 56421184002a sys/dev/dkwedge/dk.c
--- a/sys/dev/dkwedge/dk.c      Tue Sep 27 10:33:21 2022 +0000
+++ b/sys/dev/dkwedge/dk.c      Tue Sep 27 17:04:52 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dk.c,v 1.123 2022/08/22 00:32:30 riastradh Exp $       */
+/*     $NetBSD: dk.c,v 1.124 2022/09/27 17:04:52 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.123 2022/08/22 00:32:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.124 2022/09/27 17:04:52 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dkwedge.h"
@@ -1221,8 +1221,6 @@
 
        KASSERT(mutex_owned(&sc->sc_dk.dk_openlock));
        KASSERT(mutex_owned(&sc->sc_parent->dk_rawlock));
-       KASSERT(sc->sc_parent->dk_rawopens > 0);
-       KASSERT(sc->sc_parent->dk_rawvp != NULL);
 
        if (--sc->sc_parent->dk_rawopens == 0) {
                struct vnode *const vp = sc->sc_parent->dk_rawvp;



Home | Main Index | Thread Index | Old Index