Kernel: Collapse a redundant boolean conditional return statement in …

validate_mmap_prot
This commit is contained in:
Hendiadyoin1 2021-12-18 18:40:17 +01:00 committed by Brian Gianforcaro
parent f38d32535c
commit 2d28b441bf
Notes: sideshowbarker 2024-07-17 22:39:33 +09:00

View file

@ -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);
}
}