1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

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

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;