From dcdcab0099dce80697c127481a60c13e4515c04c Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Tue, 4 Apr 2023 14:08:04 +0300 Subject: [PATCH] Kernel: Remove unused credentials() call in validate_inode_mmap_prot For some reason GCC did not complain about this. --- Kernel/Syscalls/mmap.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/Syscalls/mmap.cpp b/Kernel/Syscalls/mmap.cpp index 73a7b3b852..8006b7f9d0 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;