summaryrefslogtreecommitdiff
path: root/Kernel/VM/AnonymousVMObject.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-01-20 13:06:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-01-20 13:13:03 +0100
commit4b7a89911c29b20e8e92081ecf8e9fb1bf94800e (patch)
tree10f34fd5e0f7123dd0d07386b7f2f915a8c6e6bc /Kernel/VM/AnonymousVMObject.cpp
parenta246e9cd7ea88613387ed6fb87dd5651b3d2ccac (diff)
downloadserenity-4b7a89911c29b20e8e92081ecf8e9fb1bf94800e.zip
Kernel: Remove some unnecessary casts to uintptr_t
VirtualAddress is constructible from uintptr_t and const void*. PhysicalAddress is constructible from uintptr_t but not const void*.
Diffstat (limited to 'Kernel/VM/AnonymousVMObject.cpp')
-rw-r--r--Kernel/VM/AnonymousVMObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/AnonymousVMObject.cpp b/Kernel/VM/AnonymousVMObject.cpp
index e96d3dd0c3..44ad79cc90 100644
--- a/Kernel/VM/AnonymousVMObject.cpp
+++ b/Kernel/VM/AnonymousVMObject.cpp
@@ -45,7 +45,7 @@ AnonymousVMObject::AnonymousVMObject(size_t size)
AnonymousVMObject::AnonymousVMObject(PhysicalAddress paddr, size_t size)
: VMObject(size)
{
- ASSERT(paddr.page_base() == paddr.get());
+ ASSERT(paddr.page_base() == paddr);
for (size_t i = 0; i < page_count(); ++i)
physical_pages()[i] = PhysicalPage::create(paddr.offset(i * PAGE_SIZE), false, false);
}