Module Name: src Committed By: riastradh Date: Wed Aug 27 16:06:38 UTC 2014
Modified Files: src/sys/external/bsd/drm2/linux: linux_kmap.c Log Message: Simplify empty test for linux_kmap_entries. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/linux/linux_kmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/linux/linux_kmap.c diff -u src/sys/external/bsd/drm2/linux/linux_kmap.c:1.5 src/sys/external/bsd/drm2/linux/linux_kmap.c:1.6 --- src/sys/external/bsd/drm2/linux/linux_kmap.c:1.5 Wed Aug 27 16:05:38 2014 +++ src/sys/external/bsd/drm2/linux/linux_kmap.c Wed Aug 27 16:06:38 2014 @@ -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 @@ void 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);