Skip to contentSkip to conversation

mm/mmap.c: Remove unnecessary pgoff assignment

PATCH New Zhang Yanfei 1 participant 1 message Sep 6, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/mmap.c: Remove unnecessary pgoff assignment

We never access variable pgoff later, so the assignment is redundant. Remove it.

---
 mm/mmap.c |    1 - 
 1 files changed, 0 insertions(+), 1 deletions(-)
mm/mmap.c +0 -1
index f9c97d1..db44f6a 100644
@@ -1570,7 +1570,6 @@ munmap_back:
                WARN_ON_ONCE(addr != vma->vm_start);
 
                addr = vma->vm_start;
-               pgoff = vma->vm_pgoff;
                vm_flags = vma->vm_flags;
        } else if (vm_flags & VM_SHARED) {
                if (unlikely(vm_flags & (VM_GROWSDOWN|VM_GROWSUP)))
Signature · 7 lines
1.7.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>