diff --git a/Kernel/Syscalls/mmap.cpp b/Kernel/Syscalls/mmap.cpp index 73a7b3b852f..8006b7f9d0f 100644 --- a/Kernel/Syscalls/mmap.cpp +++ b/Kernel/Syscalls/mmap.cpp @@ -110,7 +110,6 @@ ErrorOr Process::validate_mmap_prot(int prot, bool map_stack, bool map_ano ErrorOr Process::validate_inode_mmap_prot(int prot, bool readable_description, bool description_writable, bool map_shared) const { - auto credentials = this->credentials(); if ((prot & PROT_READ) && !readable_description) return EACCES;