From 2d28b441bf25fb91e68870c1bfeeac91ca761325 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Sat, 18 Dec 2021 18:40:17 +0100 Subject: =?UTF-8?q?Kernel:=20Collapse=20a=20redundant=20boolean=20conditio?= =?UTF-8?q?nal=20return=20statement=20in=20=E2=80=A6=20validate=5Fmmap=5Fp?= =?UTF-8?q?rot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kernel/Syscalls/mmap.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Kernel') diff --git a/Kernel/Syscalls/mmap.cpp b/Kernel/Syscalls/mmap.cpp index eeaabc98be..4fc530b66a 100644 --- a/Kernel/Syscalls/mmap.cpp +++ b/Kernel/Syscalls/mmap.cpp @@ -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); } } -- cgit v1.2.3