Remove a few unused variables.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26249 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -127,8 +127,6 @@ allocate_cbuf_mem(size_t size)
|
||||
cbuf *buffer = NULL;
|
||||
cbuf *lastBuffer = NULL;
|
||||
cbuf *headBuffer = NULL;
|
||||
int i;
|
||||
int count;
|
||||
size_t foundSize;
|
||||
|
||||
size = PAGE_ALIGN(size);
|
||||
@@ -944,7 +942,6 @@ cbuf_test(void)
|
||||
status_t
|
||||
cbuf_init(void)
|
||||
{
|
||||
cbuf *buffer;
|
||||
int i;
|
||||
|
||||
// add the debug command
|
||||
|
||||
@@ -2336,8 +2336,6 @@ vm_copy_on_write_area(vm_cache* lowerCache)
|
||||
{
|
||||
vm_store *store;
|
||||
vm_cache *upperCache;
|
||||
vm_page *page;
|
||||
status_t status;
|
||||
|
||||
TRACE(("vm_copy_on_write_area(cache = %p)\n", lowerCache));
|
||||
|
||||
@@ -3939,8 +3937,6 @@ vm_init(kernel_args *args)
|
||||
status_t
|
||||
vm_init_post_sem(kernel_args *args)
|
||||
{
|
||||
vm_area *area;
|
||||
|
||||
// This frees all unused boot loader resources and makes its space available again
|
||||
arch_vm_init_end(args);
|
||||
unreserve_boot_loader_ranges(args);
|
||||
@@ -4605,7 +4601,6 @@ vm_soft_fault(addr_t originalAddress, bool isWrite, bool isUser)
|
||||
|
||||
vm_cache *topCache = vm_area_get_locked_cache(area);
|
||||
off_t cacheOffset = address - area->base + area->cache_offset;
|
||||
int32 changeCount = addressSpace->change_count;
|
||||
|
||||
atomic_add(&area->no_cache_change, 1);
|
||||
// make sure the area's cache isn't replaced during the page fault
|
||||
|
||||
@@ -596,7 +596,6 @@ static int
|
||||
dump_page_stats(int argc, char **argv)
|
||||
{
|
||||
uint32 counter[8];
|
||||
int32 totalActive;
|
||||
addr_t i;
|
||||
|
||||
memset(counter, 0, sizeof(counter));
|
||||
@@ -785,7 +784,6 @@ page_scrubber(void *unused)
|
||||
snooze(100000); // 100ms
|
||||
|
||||
if (sFreePageQueue.count > 0) {
|
||||
cpu_status state;
|
||||
vm_page *page[SCRUB_SIZE];
|
||||
int32 i, scrubCount;
|
||||
|
||||
@@ -1432,8 +1430,6 @@ vm_page_schedule_write_page_range(struct vm_cache *cache, uint32 firstPage,
|
||||
for (VMCachePagesTree::Iterator it
|
||||
= cache->pages.GetIterator(firstPage, true, true);
|
||||
vm_page *page = it.Next();) {
|
||||
bool dequeuedPage = false;
|
||||
|
||||
if (page->cache_offset >= endPage)
|
||||
break;
|
||||
|
||||
@@ -1669,7 +1665,6 @@ vm_page_reserve_pages(uint32 count)
|
||||
vm_page *
|
||||
vm_page_allocate_page(int pageState, bool reserved)
|
||||
{
|
||||
ConditionVariableEntry freeConditionEntry;
|
||||
page_queue *queue;
|
||||
page_queue *otherQueue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user