Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux drm: KASSERT(A && B) -> ...



details:   https://anonhg.NetBSD.org/src/rev/e5fab398e4d9
branches:  trunk
changeset: 374540:e5fab398e4d9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon May 01 09:41:55 2023 +0000

description:
drm: KASSERT(A && B) -> KASSERT(A); KASSERT(B)

diffstat:

 sys/external/bsd/drm2/include/linux/interval_tree.h |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r e6890a0dfd0f -r e5fab398e4d9 sys/external/bsd/drm2/include/linux/interval_tree.h
--- a/sys/external/bsd/drm2/include/linux/interval_tree.h       Mon May 01 09:03:19 2023 +0000
+++ b/sys/external/bsd/drm2/include/linux/interval_tree.h       Mon May 01 09:41:55 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: interval_tree.h,v 1.13 2022/02/27 14:18:25 riastradh Exp $     */
+/*     $NetBSD: interval_tree.h,v 1.14 2023/05/01 09:41:55 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -120,7 +120,8 @@ interval_tree_iter_first(struct rb_root_
                return NULL;
        if (last < node->start)
                return NULL;
-       KASSERT(node->start <= last && node->last >= start);
+       KASSERT(node->start <= last);
+       KASSERT(node->last >= start);
 
        return node;
 }
@@ -142,7 +143,8 @@ interval_tree_iter_next(struct rb_root_c
                return NULL;
        if (last < next->start)
                return NULL;
-       KASSERT(next->start <= last && next->last >= start);
+       KASSERT(next->start <= last);
+       KASSERT(next->last >= start);
 
        return next;
 }



Home | Main Index | Thread Index | Old Index