From df8bbd345b9e501969bfd59a78926043de84e57d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:14:08 +1100 Subject: [PATCH] mm-remove-flags-argument-to-mmap_region-fix remove double parens Cc: Andy Lutomirski Cc: David Howells Cc: Greg Ungerer Cc: Michel Lespinasse Cc: Rik van Riel Signed-off-by: Andrew Morton --- mm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mmap.c b/mm/mmap.c index a7f28801f8f3..d6bc39e939ab 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1295,7 +1295,7 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr, * Set 'VM_NORESERVE' if we should not account for the * memory use of this mapping. */ - if ((flags & MAP_NORESERVE)) { + if (flags & MAP_NORESERVE) { /* We honor MAP_NORESERVE if allowed to overcommit */ if (sysctl_overcommit_memory != OVERCOMMIT_NEVER) vm_flags |= VM_NORESERVE; -- 2.39.5