summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-07 21:32:30 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-08 00:03:45 +0200
commit15d033b486eb5e10d80c785d69493ccd0cd56930 (patch)
treed3be33ca09cd962079e2cefcbd5a25c25f7aaf77 /Kernel/Process.cpp
parent2362ebf483558e75e8450e775b36ec43e494bf4d (diff)
downloadserenity-15d033b486eb5e10d80c785d69493ccd0cd56930.zip
Kernel: Remove unused Process pointer in Memory::AddressSpace
Nobody was using the back-pointer to the process, so let's lose it.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 55cce1afd0..06c9d3475b 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -275,7 +275,7 @@ Process::Process(const String& name, uid_t uid, gid_t gid, ProcessID ppid, bool
KResult Process::attach_resources(RefPtr<Thread>& first_thread, Process* fork_parent)
{
- m_space = Memory::AddressSpace::try_create(*this, fork_parent ? &fork_parent->address_space() : nullptr);
+ m_space = Memory::AddressSpace::try_create(fork_parent ? &fork_parent->address_space() : nullptr);
if (!m_space)
return ENOMEM;