mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
Kernel: Collapse a redundant boolean conditional return statement in …
validate_mmap_prot
This commit is contained in:
parent
f38d32535c
commit
2d28b441bf
1 changed files with 1 additions and 4 deletions
|
@ -88,10 +88,7 @@ static bool validate_mmap_prot(int prot, bool map_stack, bool map_anonymous, Mem
|
|||
return false;
|
||||
|
||||
if (make_executable && region->has_been_writable()) {
|
||||
if (should_make_executable_exception_for_dynamic_loader(make_readable, make_writable, make_executable, *region))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return should_make_executable_exception_for_dynamic_loader(make_readable, make_writable, make_executable, *region);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue