From d3fdd8b1800c07919c89f51781040895b397bfff Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 30 Oct 2011 20:37:15 +0000 Subject: [PATCH] Remove superflous test done a few lines above already. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43014 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm_page.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/vm/vm_page.cpp b/src/system/kernel/vm/vm_page.cpp index 3816c45375..cefb53a0e0 100644 --- a/src/system/kernel/vm/vm_page.cpp +++ b/src/system/kernel/vm/vm_page.cpp @@ -2250,7 +2250,7 @@ idle_scan_active_pages(page_stats& pageStats) if (cache == NULL) continue; - if (cache == NULL || page->State() != PAGE_STATE_ACTIVE) { + if (page->State() != PAGE_STATE_ACTIVE) { // page is no longer in the cache or in this queue cache->ReleaseRefAndUnlock(); continue;