summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorYanchuan Nian <ycnian@gmail.com>2013-09-11 14:23:05 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 15:58:13 -0700
commit2d8a17813ec817fa58addd2c92b4ca8cae5bafbb (patch)
treef67c5a6e90c5d3f97b101213e04332eebadce0b3 /mm
parent146d7009b45cdb45ec3be8ad73177dae58f4bc91 (diff)
downloadop-kernel-dev-2d8a17813ec817fa58addd2c92b4ca8cae5bafbb.zip
op-kernel-dev-2d8a17813ec817fa58addd2c92b4ca8cae5bafbb.tar.gz
mm/mmap: remove unnecessary assignment
pgoff is not used after the statement "pgoff = vma->vm_pgoff;", so the assignment is redundant. Signed-off-by: Yanchuan Nian <ycnian@gmail.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/mmap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 51958d1..9d54851 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1566,7 +1566,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) {
error = shmem_zero_setup(vma);
OpenPOWER on IntegriCloud