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 Fix ordering of interval...



details:   https://anonhg.NetBSD.org/src/rev/bce6099e3a86
branches:  trunk
changeset: 992476:bce6099e3a86
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:42:28 2018 +0000

description:
Fix ordering of interval trees, including using the right member names.

diffstat:

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

diffs (21 lines):

diff -r e1088c3df1a2 -r bce6099e3a86 sys/external/bsd/drm2/include/linux/interval_tree.h
--- a/sys/external/bsd/drm2/include/linux/interval_tree.h       Mon Aug 27 06:42:17 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/interval_tree.h       Mon Aug 27 06:42:28 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: interval_tree.h,v 1.4 2018/08/27 06:41:49 riastradh Exp $      */
+/*     $NetBSD: interval_tree.h,v 1.5 2018/08/27 06:42:28 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -67,9 +67,9 @@
        const struct interval_tree_node *n = vn;
        const unsigned long *k = vk;
 
-       if (n->last < *k)
+       if (n->start < *k)
                return -1;
-       if (*k < n->first)
+       if (*k < n->start)
                return +1;
        return 0;
 }



Home | Main Index | Thread Index | Old Index