Kernel: Remove unused credentials() call in validate_inode_mmap_prot

For some reason GCC did not complain about this.
This commit is contained in:
Idan Horowitz 2023-04-04 14:08:04 +03:00
parent 0b14081ae1
commit dcdcab0099
Notes: sideshowbarker 2024-07-17 09:39:38 +09:00

View file

@ -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;