From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:08 +0000 (+1100) Subject: mm-remove-flags-argument-to-mmap_region-fix X-Git-Tag: next-20130220~1^2~563 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=df8bbd345b9e501969bfd59a78926043de84e57d;p=karo-tx-linux.git 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 --- 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;