summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2022-05-26 15:23:33 +0000
committerrillig <rillig@NetBSD.org>2022-05-26 15:23:33 +0000
commit3eaab714170e530351098abfb5dcc5aa00585e0b (patch)
treeebebfe3656e77889e90513a4bc19de87315bf3c6 /common
parent7e67bd0e404de4550f168f9a99d42c736cc69513 (diff)
libc/ptree: remove CONSTCOND comments
Since 2021-01-31, lint does not need them anymore.
Diffstat (limited to 'common')
-rw-r--r--common/lib/libc/gen/ptree.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/lib/libc/gen/ptree.c b/common/lib/libc/gen/ptree.c
index 15b407afa7c..a1a6ad1e714 100644
--- a/common/lib/libc/gen/ptree.c
+++ b/common/lib/libc/gen/ptree.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ptree.c,v 1.11 2022/05/24 20:50:17 andvar Exp $ */
+/* $NetBSD: ptree.c,v 1.12 2022/05/26 15:23:33 rillig Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
#include <sys/types.h>
#include <sys/systm.h>
#include <lib/libkern/libkern.h>
-__KERNEL_RCSID(0, "$NetBSD: ptree.c,v 1.11 2022/05/24 20:50:17 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ptree.c,v 1.12 2022/05/26 15:23:33 rillig Exp $");
#else
#include <stddef.h>
#include <stdint.h>
@@ -51,9 +51,9 @@ __KERNEL_RCSID(0, "$NetBSD: ptree.c,v 1.11 2022/05/24 20:50:17 andvar Exp $");
#include <assert.h>
#define KASSERT(e) assert(e)
#else
-#define KASSERT(e) do { } while (/*CONSTCOND*/ 0)
+#define KASSERT(e) do { } while (0)
#endif
-__RCSID("$NetBSD: ptree.c,v 1.11 2022/05/24 20:50:17 andvar Exp $");
+__RCSID("$NetBSD: ptree.c,v 1.12 2022/05/26 15:23:33 rillig Exp $");
#endif /* _KERNEL || _STANDALONE */
#ifdef _LIBC
@@ -115,7 +115,7 @@ bool ptree_check(const pt_tree_t *);
#if PTCHECK > 1
#define PTREE_CHECK(pt) ptree_check(pt)
#else
-#define PTREE_CHECK(pt) do { } while (/*CONSTCOND*/ 0)
+#define PTREE_CHECK(pt) do { } while (0)
#endif
static inline bool