mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05: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
Reference in a new issue