Skip to content

Commit cc5403f

Browse files
committed
Kernel: Remove unused variable PhysicalRegion::m_last
1 parent 4b66692 commit cc5403f

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

Kernel/VM/PhysicalRegion.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ Optional<unsigned> PhysicalRegion::find_and_allocate_contiguous_range(size_t cou
102102
m_bitmap.set(page_index, true);
103103
}
104104
m_used += count;
105-
m_last = page + count;
106105
return page;
107106
}
108107
return {};
@@ -131,9 +130,6 @@ void PhysicalRegion::return_page_at(PhysicalAddress addr)
131130
ASSERT((FlatPtr)local_offset < (FlatPtr)(m_pages * PAGE_SIZE));
132131

133132
auto page = (FlatPtr)local_offset / PAGE_SIZE;
134-
if (page < m_last)
135-
m_last = page;
136-
137133
m_bitmap.set(page, false);
138134
m_used--;
139135
}

Kernel/VM/PhysicalRegion.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ class PhysicalRegion : public RefCounted<PhysicalRegion> {
6666
PhysicalAddress m_upper;
6767
unsigned m_pages { 0 };
6868
unsigned m_used { 0 };
69-
unsigned m_last { 0 };
7069
Bitmap m_bitmap;
7170
};
7271

0 commit comments

Comments
 (0)