Source-Changes-HG archive

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

[src/trunk]: src/sys/kern kpause(9): Simplify assertion. No functional chang...



details:   https://anonhg.NetBSD.org/src/rev/e8e8b6b8b917
branches:  trunk
changeset: 374189:e8e8b6b8b917
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Apr 09 12:16:42 2023 +0000

description:
kpause(9): Simplify assertion.  No functional change intended.

diffstat:

 sys/kern/kern_synch.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c3792d434df9 -r e8e8b6b8b917 sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c     Sun Apr 09 12:16:34 2023 +0000
+++ b/sys/kern/kern_synch.c     Sun Apr 09 12:16:42 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_synch.c,v 1.353 2022/12/05 15:47:14 martin Exp $  */
+/*     $NetBSD: kern_synch.c,v 1.354 2023/04/09 12:16:42 riastradh Exp $       */
 
 /*-
  * Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009, 2019, 2020
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.353 2022/12/05 15:47:14 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.354 2023/04/09 12:16:42 riastradh Exp $");
 
 #include "opt_kstack.h"
 #include "opt_dtrace.h"
@@ -233,7 +233,7 @@ kpause(const char *wmesg, bool intr, int
        struct lwp *l = curlwp;
        int error;
 
-       KASSERT(!(timo == 0 && intr == false));
+       KASSERT(timo != 0 || intr);
 
        if (sleepq_dontsleep(l))
                return sleepq_abort(NULL, 0);



Home | Main Index | Thread Index | Old Index