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/dist/drm drm: rb_tree_insert_node retu...



details:   https://anonhg.NetBSD.org/src/rev/d6b75ed89c22
branches:  trunk
changeset: 1028645:d6b75ed89c22
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:34:56 2021 +0000

description:
drm: rb_tree_insert_node returns node, not NULL, on success

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_prime.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 3f0db7caa907 -r d6b75ed89c22 sys/external/bsd/drm2/dist/drm/drm_prime.c
--- a/sys/external/bsd/drm2/dist/drm/drm_prime.c        Sun Dec 19 11:34:44 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_prime.c        Sun Dec 19 11:34:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_prime.c,v 1.16 2021/12/19 11:33:30 riastradh Exp $ */
+/*     $NetBSD: drm_prime.c,v 1.17 2021/12/19 11:34:56 riastradh Exp $ */
 
 /*
  * Copyright © 2012 Red Hat
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_prime.c,v 1.16 2021/12/19 11:33:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_prime.c,v 1.17 2021/12/19 11:34:56 riastradh Exp $");
 
 #include <linux/export.h>
 #include <linux/dma-buf.h>
@@ -197,7 +197,7 @@
 #ifdef __NetBSD__
        collision = rb_tree_insert_node(&prime_fpriv->dmabufs.rbr_tree,
            member);
-       KASSERT(collision == NULL);
+       KASSERT(collision == member);
 #else
        rb = NULL;
        p = &prime_fpriv->dmabufs.rb_node;
@@ -218,7 +218,7 @@
 #ifdef __NetBSD__
        collision = rb_tree_insert_node(&prime_fpriv->handles.rbr_tree,
            member);
-       KASSERT(collision == NULL);
+       KASSERT(collision == member);
 #else
        rb = NULL;
        p = &prime_fpriv->handles.rb_node;



Home | Main Index | Thread Index | Old Index