fs/mmap: enable parameter checks always
These parameter checks should always be enabled.
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
diff --git a/fs/mmap/fs_mmap.c b/fs/mmap/fs_mmap.c
index 11ffb55..8b310e7 100644
--- a/fs/mmap/fs_mmap.c
+++ b/fs/mmap/fs_mmap.c
@@ -73,7 +73,6 @@
* things.
*/
-#ifdef CONFIG_DEBUG_FEATURES
/* A flags with MAP_PRIVATE and MAP_SHARED is invalid. */
if ((flags & MAP_PRIVATE) && (flags & MAP_SHARED))
@@ -99,7 +98,6 @@
ferr("ERROR: Invalid length, length=%zu\n", length);
return -EINVAL;
}
-#endif /* CONFIG_DEBUG_FEATURES */
/* Check if we are just be asked to allocate memory, i.e., MAP_ANONYMOUS
* set meaning that the memory is not backed up from a file. The file