1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

Kernel: Remove unused Process pointer in Memory::AddressSpace

Nobody was using the back-pointer to the process, so let's lose it.
This commit is contained in:
Andreas Kling 2021-08-07 21:32:30 +02:00
parent 2362ebf483
commit 15d033b486
4 changed files with 8 additions and 10 deletions

View file

@ -453,7 +453,7 @@ static KResultOr<LoadResult> load_elf_object(NonnullOwnPtr<Memory::AddressSpace>
KResultOr<LoadResult> Process::load(NonnullRefPtr<FileDescription> main_program_description,
RefPtr<FileDescription> interpreter_description, const ElfW(Ehdr) & main_program_header)
{
auto new_space = Memory::AddressSpace::try_create(*this, nullptr);
auto new_space = Memory::AddressSpace::try_create(nullptr);
if (!new_space)
return ENOMEM;