From 47d4527f8fb3b97e3572f3d79509ad9a0be79777 Mon Sep 17 00:00:00 2001 From: attilio Date: Fri, 15 Feb 2013 17:22:57 +0000 Subject: Remove an unuseful check as looking up into an empty trie should be as fast as checking a NULL ptr. Sponsored by: EMC / Isilon storage division --- sys/vm/vm_page.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index cf922a7..e845aa6 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1053,9 +1053,7 @@ vm_page_cache_lookup(vm_object_t object, vm_pindex_t pindex) VM_OBJECT_LOCK_ASSERT(object, MA_OWNED); mtx_assert(&vm_page_queue_free_mtx, MA_OWNED); - if (!vm_object_cache_is_empty(object)) - return (vm_radix_lookup(&object->cache, pindex)); - return (NULL); + return (vm_radix_lookup(&object->cache, pindex)); } /* -- cgit v1.1