summaryrefslogtreecommitdiff
path: root/Kernel/VM/MemoryManager.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 15:21:30 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 17:42:31 +0200
commit055726ecf5e0e0160da0986ebdb38cafa6b9806f (patch)
tree23532f9f6415e2ea383c1faed591316cb617f9a4 /Kernel/VM/MemoryManager.cpp
parenta8d86cc533fcbc78b8d3fb8bb05fe00768381808 (diff)
downloadserenity-055726ecf5e0e0160da0986ebdb38cafa6b9806f.zip
Kernel: Remove unused MemoryManager::find_region_from_vaddr()
Diffstat (limited to 'Kernel/VM/MemoryManager.cpp')
-rw-r--r--Kernel/VM/MemoryManager.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp
index e5b578ada7..613dd2f6c2 100644
--- a/Kernel/VM/MemoryManager.cpp
+++ b/Kernel/VM/MemoryManager.cpp
@@ -593,14 +593,6 @@ Region* MemoryManager::find_user_region_from_vaddr(Space& space, VirtualAddress
return space.find_region_containing({ vaddr, 1 });
}
-Region* MemoryManager::find_region_from_vaddr(Space& space, VirtualAddress vaddr)
-{
- ScopedSpinLock lock(s_mm_lock);
- if (auto* region = find_user_region_from_vaddr(space, vaddr))
- return region;
- return kernel_region_from_vaddr(vaddr);
-}
-
Region* MemoryManager::find_region_from_vaddr(VirtualAddress vaddr)
{
ScopedSpinLock lock(s_mm_lock);