summaryrefslogtreecommitdiff
path: root/sys/kern/kern_event.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2019-05-04 14:52:46 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2019-05-04 14:52:46 +0000
commite40855118a6700d04bcb54580b1311a99a947be7 (patch)
tree08cfaefa011bb000b8fe82087e6245aabd8f071a /sys/kern/kern_event.c
parent7bddc27fe807bb69fa179117b8c986e9e6f19378 (diff)
Removed all diagnostic, calling printf() here might create a recursion.
Should be revisited once logwakeup() is fixed.
Diffstat (limited to 'sys/kern/kern_event.c')
-rw-r--r--sys/kern/kern_event.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index ea7622cd05f..8077bbb64b8 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_event.c,v 1.103 2019/05/04 14:42:44 mpi Exp $ */
+/* $OpenBSD: kern_event.c,v 1.104 2019/05/04 14:52:45 mpi Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
@@ -1073,10 +1073,6 @@ knote_enqueue(struct knote *kn)
int s = splhigh();
KASSERT((kn->kn_status & KN_QUEUED) == 0);
-#ifdef DIAGNOSTIC
- if (!_kernel_lock_held() && (splassert_ctl > 0))
- splassert_fail(42, 0, __func__);
-#endif
TAILQ_INSERT_TAIL(&kq->kq_head, kn, kn_tqe);
kn->kn_status |= KN_QUEUED;
@@ -1092,10 +1088,6 @@ knote_dequeue(struct knote *kn)
int s = splhigh();
KASSERT(kn->kn_status & KN_QUEUED);
-#ifdef DIAGNOSTIC
- if (!_kernel_lock_held() && (splassert_ctl > 0))
- splassert_fail(42, 0, __func__);
-#endif
TAILQ_REMOVE(&kq->kq_head, kn, kn_tqe);
kn->kn_status &= ~KN_QUEUED;