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
This commit is contained in:
parent
8aab28f19b
commit
d3fdd8b180
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user