mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Collapse a redundant boolean conditional return statement in …
validate_mmap_prot
This commit is contained in:
parent
f38d32535c
commit
2d28b441bf
Notes:
sideshowbarker
2024-07-17 22:39:33 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/2d28b441bf2 Pull-request: https://github.com/SerenityOS/serenity/pull/11294
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…
Reference in a new issue