]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-remove-flags-argument-to-mmap_region-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Feb 2013 02:14:08 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:25 +0000 (16:52 +1100)
remove double parens

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: David Howells <dhowells@redhat.com>
Cc: Greg Ungerer <gregungerer@westnet.com.au>
Cc: Michel Lespinasse <walken@google.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c

index a7f28801f8f389a3dc95ec6f0f90c9a5c33396bd..d6bc39e939ab2412e11f15ab6dc5dcd48f8bbd42 100644 (file)
--- 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;