mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +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:
parent
0b14081ae1
commit
dcdcab0099
Notes:
sideshowbarker
2024-07-17 09:39:38 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/dcdcab0099 Pull-request: https://github.com/SerenityOS/serenity/pull/18178 Reviewed-by: https://github.com/awesomekling ✅
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue