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/linux Simplify empty test for linux_km...
details: https://anonhg.NetBSD.org/src/rev/aa0d7514ce92
branches: trunk
changeset: 331864:aa0d7514ce92
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Aug 27 16:06:38 2014 +0000
description:
Simplify empty test for linux_kmap_entries.
diffstat:
sys/external/bsd/drm2/linux/linux_kmap.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 476bc4cbd307 -r aa0d7514ce92 sys/external/bsd/drm2/linux/linux_kmap.c
--- a/sys/external/bsd/drm2/linux/linux_kmap.c Wed Aug 27 16:05:38 2014 +0000
+++ b/sys/external/bsd/drm2/linux/linux_kmap.c Wed Aug 27 16:06:38 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_kmap.c,v 1.5 2014/08/27 16:05:38 riastradh Exp $ */
+/* $NetBSD: linux_kmap.c,v 1.6 2014/08/27 16:06:38 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_kmap.c,v 1.5 2014/08/27 16:05:38 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_kmap.c,v 1.6 2014/08/27 16:06:38 riastradh Exp $");
#include <sys/types.h>
#include <sys/kmem.h>
@@ -125,9 +125,8 @@
linux_kmap_fini(void)
{
- KASSERT(rb_tree_iterate(&linux_kmap_entries, NULL, RB_DIR_RIGHT) ==
- NULL);
-#if 0 /* XXX no rb_tree_destroy*/
+ KASSERT(RB_TREE_MIN(&linux_kmap_entries) == NULL);
+#if 0 /* XXX no rb_tree_destroy */
rb_tree_destroy(&linux_kmap_entries);
#endif
mutex_destroy(&linux_kmap_lock);
Home |
Main Index |
Thread Index |
Old Index