diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2023-04-04 14:08:04 +0300 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2023-04-06 20:30:03 +0300 |
commit | dcdcab0099dce80697c127481a60c13e4515c04c (patch) | |
tree | b937ed3ce3f84ad952f8f445b4c513529c0120e1 /Kernel/Syscalls | |
parent | 0b14081ae191d5fcbd831ad8542a22632aa18f93 (diff) | |
download | serenity-dcdcab0099dce80697c127481a60c13e4515c04c.zip |
Kernel: Remove unused credentials() call in validate_inode_mmap_prot
For some reason GCC did not complain about this.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/mmap.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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<void> Process::validate_mmap_prot(int prot, bool map_stack, bool map_ano ErrorOr<void> 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; |